修改mysql数据库权限
show databases; use mysql; grant all privileges on *.* to 'root' @'%' identified by '123456' with grant option; flush privileges;
grant all privileges on *.* to 'root' @'%' identified by '123456' with grant option;
说明:
1.%表示所有ip ,也可以指定ip。
2.by后面的123456是密码。