[linux] 外网连接mysql

mysql -hlocalhost -uroot -P3306 -p;
 
use mysql;
 
select * from user;
 
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; flush 
 
flush privileges;
posted @ 2019-10-14 09:47  Moke丶青  阅读(200)  评论(0编辑  收藏  举报