linux5.0企业版系统,安装的tar.gz格式的Mysql,用root帐号可以正常登陆,但是mysql新增帐号
grant all on *.* to ly@"&" identified by "ly";
更新权限表
然后登入的时候提示:
[root@localhost ~]# mysql -u ly -p
Enter password:
已经输入正确的密码,蛤是还是全提示下面错误:
ERROR 1045 (28000): Access denied for user 'ly'@'localhost' (using password: YES)
有人知道是什么问题吗?
grant all on *.* to ly@"&" identified by "ly";
更新权限表
然后登入的时候提示:
[root@localhost ~]# mysql -u ly -p
Enter password:
已经输入正确的密码,蛤是还是全提示下面错误:
ERROR 1045 (28000): Access denied for user 'ly'@'localhost' (using password: YES)
有人知道是什么问题吗?
grant all on *.* to ly@'%' identified by "ly";
LZ你敲的是&不是%
& %没有什么区别吗?
grant all on *.* to ly@'%' identified by "ly"
看看里面是否有你授权进行的账户。
2、flush privileges;
用ROOT账号进去select user,host from mysql.user贴出结果以供分析。