1.linux环境下安装mysql
参考连接:https://blog.csdn.net/wohiusdashi/article/details/89358071
2.修改host匹配方式,用于支持远程连接
完成上述操作后,远程连接会报错误:
【1130 - Host XXX is not allowed to connect to this MySQL server】
解决方案:将Host修改为通配符
use mysql;
update user set host = ‘%’ where user =‘root’;
之后刷新下配置:
flush privileges;
来源:CSDN
作者:hwf13246837704
链接:https://blog.csdn.net/hwf13246837704/article/details/103672170