1、VirtualBox对Ubuntu系统进行设置,“网络”选择“桥接网卡”

 

2、安装MYSQL服务器

sudo su;   apt-get intall mysql-server

 

3、赋予远程访问的权限:

grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; 

flush privileges;

 

4、修改绑定地址

vi /etc/mysql/mysql.conf.d/mysql.cnf, 把bind-address=127.0.0.1改成bind-address=0.0.0.0

 

5、重启MYSQL服务器

/etc/init.d/mysql stop;

/etc/init.d/mysql start;

 

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-09-07
  • 2021-04-13
  • 2022-12-23
  • 2021-04-08
  • 2022-12-23
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-08-26
  • 2022-01-18
  • 2021-05-21
  • 2021-10-08
相关资源
相似解决方案