安装配置
ubuntu安装好mysql之后,需要修改配置文件:
/etc/mysql/my.cnf
要注释掉该行:bind-address = 127.0.0.1
新建用户并授权
- ssh 连上去
- mysql -u root -p
- use mysql;
- grant all privileges on . to yourUserName@’%’ identified by ‘yourPasswd’ with grant option;
- flush privileges;
ubuntu安装好mysql之后,需要修改配置文件:
/etc/mysql/my.cnf
要注释掉该行:bind-address = 127.0.0.1