Mysql远程连接:1045 – Access denied for user ‘[email protected]′(using password:NO/YES)

cd /usr/local/mysql/bin

mysql -uroot -p

use mysql

GRANT ALL PRIVILEGES ON . TO '你的账号'@'你的ip' IDENTIFIED BY '你的密码' WITH GRANT OPTION;

flush privileges;

你可能感兴趣的:(Mysql远程连接:1045 – Access denied for user ‘[email protected]′(using password:NO/YES))