1. apt-get install mysql-server
 2. apt-get isntall mysql-client

 

修改 /etc/mysql/my.cnf

#bind-address           = 127.0.0.1

 

本地登录

mysql -u root -p

grant all on *.* to root identified by '123456'

 

gedit /etc/mysql/mysql.conf.d/mysqld.cnf 

修改bindip

 

service mysql restart

相关文章:

  • 2021-11-14
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2021-11-21
  • 2021-11-17
  • 2022-12-23
  • 2021-07-14
  • 2021-11-23
  • 2021-11-21
相关资源
相似解决方案