mysql linux终端登陆

mysql -uroot -hlocalhost -p
sorry

设置远程登录 用户名及密码

GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "123456";

原文地址:https://www.cnblogs.com/xxhong/p/3422924.html