简体   繁体   中英

#1044 - Access denied for user 'faiskap'@'localhost' to database 'information_schema'

I am getting the following error on my database.

#1044 - Access denied for user 'faiskap'@'localhost' to database 'information_schema'

On 1044, I have the following code,

CREATE TEMPORARY TABLE `GLOBAL_STATUS` (
  `VARIABLE_NAME` varchar(64) NOT NULL DEFAULT '',
  `VARIABLE_VALUE` varchar(1024) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=utf8;

Please guide me how can I remove this error?

Do not CREATE anything in the databases information_schema or mysql or performance_schema .

USE your_database_name before executing that CREATE TEMPORARY TABLE .

Check whether you have global privileges

SHOW GRANTS FOR 'faiskap'@'localhost';

If not grant privileges

GRANT ALL ON *.* TO 'faiskap'@'localhost';
GRANT SELECT, INSERT ON *.* TO 'faiskap'@'localhost';

The information_schema is a logical database, and you should not import or export information_schema. You must skip importing information_schema by giving --force option to mysql client if you are using old version of mysqldump

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM