mysql局域网登录

CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

sudo service mysql restart

mysql -h 192.168.1.102 -uroot -p
posted @ 2022-07-29 15:17  千心  阅读(61)  评论(0编辑  收藏  举报