在linux/mysql/bin目录下执行 mysql -u root -p登录mysql 之后
1.授权
mysql>grant all privileges on *.* to 'root'@'%' identified by 'yourpassword' with grant option;
mysql>flush privileges``
2.修改my.cnf
添加bind-address为0.0.0.0
OJBK!!!
在linux/mysql/bin目录下执行 mysql -u root -p登录mysql 之后
1.授权
mysql>grant all privileges on *.* to 'root'@'%' identified by 'yourpassword' with grant option;
mysql>flush privileges``
2.修改my.cnf
添加bind-address为0.0.0.0
OJBK!!!