phpmyadmin#1044-拒绝用户'root'@'localhost'访问数据库'information_schema'

时间:2020-02-06 15:44:49

标签: mysql phpmyadmin

导入SQL转储后,出现此错误:

1044-拒绝用户'root'@'localhost'访问数据库'information_schema'

当然我用phpmyadmin搜索了这个错误。

所以我尝试了这个:

mysql -h localhost -u根-p

但这不起作用。

那我要改变什么?

谢谢

所以这是phpmyadmin中的完整错误:

SQL query: Copy


-- Dumping database structure for information_schema
CREATE DATABASE IF NOT EXISTS `information_schema` /*!40100 DEFAULT CHARACTER SET utf8 */
MySQL said: Documentation

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

这是我要导入的sql文件的开头:


-- Dumping database structure for information_schema
CREATE DATABASE IF NOT EXISTS `information_schema` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `information_schema`;

0 个答案:

没有答案
相关问题