时间:2021-07-01 10:21:17 帮助过:3人阅读
1、进入到MySQL安装的bin目录。
2、运行mysql -uroot
3、
授权用户,你想root使用密码从任何主机连接到mysql服务器
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘hnxyzn123‘ WITH GRANT OPTION;
flush privileges;
如果你想允许用户root从ip为192.168.1.104的主机连接到mysql服务器
GRANT ALL PRIVILEGES ON *.* TO ‘myuser‘@‘192.168.1.104‘ IDENTIFIED BY ‘admin123‘ WITH GRANT OPTION;
flush privileges;
mysql发布到外网
标签:es2017 目录 use dmi images nbsp bsp src ima