apt-get install mysql-server
mysql默认开启了本地连接
直接通过mysql -uuser -p,然后输入密码访问
grant all privileges on *.* to 'user'@'%' identified by 'password' with grant option
flush privileges
vim /etc/mysql/mysql.conf.d/mysqld.cnf
service mysql restart
然后就可以在其他的客户端远程访问了