安装mysql和卸载mysql  
  
1.安装数据库:sudo apt-get install mysql-server   安装过程中需要设置密码。   
  
2.安装客户端:sudo apt-get install mysql-client   
  
3.登录MySQL:mysql -u root -p   
  
4.配置文件:/etc/mysql/my.cnf   
  
a.设置远程访问:将bind-address = 127.0.0.1中的127.0.0.1给为本机IP,这样能够使数据库支持网络远程访问。设置完成后,重启mysql服务:service mysql restart   
  
b.数据库开启/关闭/重启等:/etc/init.d/mysql [start|stop|restart|reload|force-reload|status] 

 

相关文章:

  • 2021-11-20
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2021-11-30
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-11-17
  • 2021-11-05
相关资源
相似解决方案