./bin/mysql -uroot -h 127.0.0.1 -p
./bin/mysql -uroot -h localhost -p
任意一条登录mysql
`
use mysql
update user set host='%' where user='root';
flush privileges
打开电脑mysql 新建连接
成功登录
./bin/mysql -uroot -h 127.0.0.1 -p
./bin/mysql -uroot -h localhost -p
任意一条登录mysql
`
use mysql
update user set host='%' where user='root';
flush privileges
打开电脑mysql 新建连接
成功登录