Linux刚安装完并不是安装了全部的MySQL,比如Centos就没有安装mysql-server。

故使用rpm -q mysql会看到明明安装了mysql却用不了。

所以先安装mysql-server命令如下: 
#yum install mysql-server 
安装之后,还要记得启动其守护进程:

#service mysqld start

剩下的就跟Windows一样了

相关文章:

  • 2021-09-01
  • 2021-12-29
  • 2021-09-10
  • 2022-02-16
  • 2021-08-26
  • 2022-03-10
  • 2021-12-06
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2021-11-30
  • 2021-12-15
  • 2021-05-28
相关资源
相似解决方案