ubuntu16安装MySQL

sudo apt-get install mysql-server
ubuntu16安装MySQL
sudo apt install mysql-clientubuntu16安装MySQL
sudo apt install libmysqlclient-devubuntu16安装MySQL
登陆
mysql -uroot -p你的密码

设置mysql允许远程访问
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
注释掉bind-address = 127.0.0.1

保存退出,然后进入mysql服务,执行授权命令
rant all on . to [email protected]’%’ identified by ‘你的密码’ with grant option;
flush privileges;

重启mysql
service mysql restart
ubuntu16安装MySQL
外部连接mysql
ubuntu16安装MySQL

连接成功
ubuntu16安装MySQL

相关文章:

  • 2021-07-26
  • 2021-05-30
  • 2021-10-20
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2021-05-16
  • 2021-08-26
  • 2021-05-22
  • 2021-05-21
  • 2021-04-12
  • 2021-09-25
相关资源
相似解决方案