mysql -u root -p
Aaa111222
grant all privileges on *.* to root@‘%‘ identified by ‘aaa111222;
Quit
lnmp restart
mysql设置远程访问密码
原文:http://www.cnblogs.com/wujunbin/p/7468597.html