在服务器上打开mysql命令行,依次执行下面这两句:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;  
mysql flush privileges; 

Copyright © 2024 zkx4213
Powered by .NET 9.0 on Kubernetes