标签:配置文件 远程 mysq 登录 运行命令 sql 命令 get apt-get
sudo apt-get install mysql-server mysql-client
然后按照提示输入
service mysql start
service mysql stop
service mysql restart
设置
远程连接sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
将bind-address=127.0.0.1注释
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘mysql‘ with grant option;
flush privileges;
标签:配置文件 远程 mysq 登录 运行命令 sql 命令 get apt-get
原文地址:https://www.cnblogs.com/qiushanjian/p/10358419.html