数据库被黑了,淦
查看MySQL的访问IP权限
# 进入mysqldocker exec -it mysql /bin/bashmysql -u root -p# 设置本地IP才可以访问127.0.0.1改为本地公网IPGRANT ALL PRIVILEGES ON *.* TO \'root\'@\'127.0.0.1\' IDENTIFIED BY \'root\'# 刷新权限flush privileges;exitdocker restart mysql
查看MySQL的访问IP权限
# 进入mysqldocker exec -it mysql /bin/bashmysql -u root -p# 设置本地IP才可以访问127.0.0.1改为本地公网IPGRANT ALL PRIVILEGES ON *.* TO \'root\'@\'127.0.0.1\' IDENTIFIED BY \'root\'# 刷新权限flush privileges;exitdocker restart mysql