欢迎关注原创视频教程
Python微信订餐小程序课程视频
https://edu.csdn.net/course/detail/36074
Python实战量化交易理财系统
https://edu.csdn.net/course/detail/35475
主机商放行3306端口
一、远程链接数据库
打开mysql控制台
mysql -u root -p
然后输入密码
二、选择数据库:
use mysql;
show tables;
三、输入:
select host from user;
四、開放權限:
update user set host ='%' where user ='root';
关闭权限
update user set host = "localhost" where user = "root" and host = "%";
五、输入重新启动mysql服务
flush privileges;
exit
service mysqld restart
链接: