一、安装数据库
https://www.cnblogs.com/huiyi0521/p/10113280.html
二、使用 mysql 命令为 root 用户授权 mysql 远程连接服务
mysql>use mysql; mysql>update user set host = ‘%‘ where user =‘root‘; mysql>select host,user from user; mysql> flush privileges;
原文:https://www.cnblogs.com/fger/p/10403017.html