lnmp mysql添加用户命令

cd /usr/local/mysql/bin/
grant all privileges on *.* to 'root'@'%' identified by '12345678';
flush privileges;

原文地址:https://www.cnblogs.com/hxl2009/p/3598726.html