1. 再次进入解压后的目录,即源码目录:# cd mysql-5.1.58

2. 将mysql.server这个文件copy到/etc/init.d/目录下,并更名为mysql

 

# cp support-files/mysql.server /etc/init.d/mysql

# chmod 755 /etc/init.d/mysql //给mysql这个文件赋予“执行”权限

# chkconfig --add mysql //加入到开机自动运行

# service mysql restart //重新启动MySQL

相关文章:

  • 2021-04-22
  • 2021-10-11
  • 2021-10-01
  • 2021-11-06
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案