当我使用 mysql授予用户时,
GRANT ALL PRIVILEGES ON *.* TO hehe IDENTIFIED BY ‘some‘ WITH GRANT OPTION;
出现:1044: Access denied for user ‘hehe‘@‘localhost‘ to database ‘imooc‘
修改成这样:
GRANT ALL PRIVILEGES ON *.* TO hehe@localhost IDENTIFIED BY ‘some‘ WITH GRANT OPTION;
就没有错误了,也可以在phpmyadmin之类中 将
主机: %
修改成:
主机:localhost
1044: Access denied for user 'hehe'@'localhost' to database 'imooc'
原文:http://www.cnblogs.com/tumio/p/5095886.html