在 /etc/rc.d/rc.local 添加:

/media/db/mysql/bin/mysqld_safe --user=mysql &

&代表异步的意思。路径根据自己MySQL的目录来写,我的MySQL安装在了 /media/db/ 下。

Linux(CentOS):设置开机自动启动MySQL

 

相关文章:

  • 2021-11-20
  • 2021-09-03
  • 2022-12-23
  • 2021-09-13
  • 2022-01-05
  • 2021-11-04
猜你喜欢
  • 2021-10-09
  • 2021-09-20
  • 2022-02-13
  • 2021-11-20
  • 2021-11-20
  • 2021-11-28
相关资源
相似解决方案