安装
sudo apt-get install mysql-server mysql-client
配置
sudo vi /etc/mysql/my.cnf
注释掉地址监听限制
#bind-address = 127.0.0.1
授予权限
grant all privileges on . to 用户名 @”%” identified by “密码”;
重启
sudo restart mysql
查看
sudo netstat -tap | grep mysql
Ubuntu MySQL安装简明教材:http://www.linuxdiyf.com/linux/700.html