mysql> GRANT replication slave on *.* to 'rep'@'192.168.88.%' identified by '123456abc';
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
GRANT replication slave on *.* to 'rep'@'192.168.88.%' identified by '123456abc';
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
嘗試給root授予所有權(quán)限
GRANT ALL *.* to 'root'@'localhost';
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
是否有什么權(quán)限錯(cuò)誤,把權(quán)限表詳情放在下面,大家?guī)兔纯矗?br />
個(gè)人初步確定問(wèn)題可能在下面,User有空用戶,但是嘗試 delete from user where user is NULL or user=''; 并FLUSH PRIVIEGES;問(wèn)題還是如上所述
mysql> select Host,User,Grant_priv from db;
+-----------+-----------+------------+
| Host | User | Grant_priv |
+-----------+-----------+------------+
| % | | N |
| % | | N |
| localhost | wordpress | N |
+-----------+-----------+------------+
3 rows in set (0.00 sec)
mysql> select Host,Grant_priv from host;
Empty set (0.00 sec)
mysql> select User,Grantor from procs_priv;
Empty set (0.00 sec)
mysql> select User,Host,Grant_priv from user;
+-----------+-----------+------------+
| User | Host | Grant_priv |
+-----------+-----------+------------+
| root | localhost | N |
| root | 127.0.0.1 | Y |
| rep | | N |
| wordpress | localhost | N |
+-----------+-----------+------------+
4 rows in set (0.00 sec)