我在mysql里面设置了一个root@'%' 远程连接是可以连接上的,但是在mysql数据库本机是连接不上的,即使加上-h 也是不行,老是提示
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)。难道非要grant all privileges on *.* to 'root'@'localhost' identified by 'root' with grant option,创建一个localhost吗,%表示任意的主机,为什么不包括 localhost?
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)。难道非要grant all privileges on *.* to 'root'@'localhost' identified by 'root' with grant option,创建一个localhost吗,%表示任意的主机,为什么不包括 localhost?
%表示任意的主机,肯定包括 localhost