一.安装 apt-get install mysql-server 二.本地连接 mysql默认开启了本地连接 直接通过mysql -uuser -p,然后输入密码访问 三.开启远程访问 3.1.创建一个与管理员同等权限的用户 grant all privileges on *.* to 'user'@'%' identified by 'password' with grant option 3.2.更新mysql权限 flush privileges 3.3.修改配置文件实现远程访问 vim…