1.连接数据库 [root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: 8.0.17 MySQL Community Server - GPL Copyright (c) 2000, 2019, Oracle and/or its affili…
一.安装 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…