sudo apt install MysqL-server MysqL-client
启动MysqL服务
service MysqL start
配置远程访问
grant all privileges on *.* toroot@"%" identified by "yourpassword" with grant option;
重新授权表
flush privileges;
sudo gedit /etc/MysqL/MysqL.conf.d
注释掉
bind-address = 127.0.0.1
即前边加上‘#’
完成重启MysqL服务
service MysqL restart原文链接:https://www.f2er.com/ubuntu/356476.html