You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
今天部署遇到同样的问题,附上解决方法:
设备是mac m2,更换了arm版的mysql导致安装后没有验证码无法登录,进到insight2容器内运行主程序run.py报以下错误pymysql.err.OperationalError: (1130, "172.18.0.4' is not allowed to connect to this MySQL server")
推测是无法连接到服务器,进到mysql数据库容器更改访问权限
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'crediteaseitsec' WITH GRANT OPTION;
FLUSH PRIVILEGES;
刷新提示无法连接到数据库,推测可能数据库没有初始化
web_mysql-1 | 2024-03-15T10:35:59.827702Z 81 [Note] Aborted connection 81 to db: 'insight2' user: 'root' host: '172.18.0.4' (Got an error reading communication packets)
查看源码部署文档把数据库初始化的init.sql丢进数据库容器然后执行初始化
mysql -u user -p crediteaseitsec -h localhost < /init.sql
问题处理完毕
查看日志显示404,怎么办呢
The text was updated successfully, but these errors were encountered: