安装:

sudo apt-get update
sudo apt-get install mysql-server 


配置远程访问:

vi /etc/mysql/mysql.conf.d/mysqld.conf

  注释掉:

  #bind-address 127.0.0.1

 

mysql -u root -p

  grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';
  flush privileges;
 
 
重启MySql即可。

 

相关文章:

  • 2021-07-13
  • 2021-09-03
  • 2021-10-23
  • 2021-04-19
  • 2021-10-30
猜你喜欢
  • 2021-06-07
  • 2021-10-01
  • 2021-07-04
  • 2022-01-13
  • 2021-06-05
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案