-   Linux - Server (
-   -   MySQL setup without "mysql.server" in CentOS5 (

Ericxx 07-14-2010 10:00 AM

MySQL setup without "mysql.server" in CentOS5
Hello all,

I am using CentOS5 and installed the MySQL for server during the installation. I can set up and use MySQL databases. But I cannot make it startup everytime the server restarts. And quite a lot of methods need this folder "support-files/mysql.server", while my set up cannot find this. I am wondering if my installation of the MySQL for server is complete or not. Please suggest. Thanks.


anomie 07-14-2010 10:04 AM

How did you install MySQL? (By selecting it during CentOS install time? Using yum, from the CentOS repositories? Or something else?)

Should be as simple as:

# chkconfig mysqld on

Ericxx 07-14-2010 11:21 PM

Thanks, anomie. Now can autostart the MySQL everytime reboot the server.

I installed MySQL during the CentOS installation without using yum. And here is the output:
#rpm -qa centos-release mysql\* | sort


Ericxx 07-16-2010 02:51 AM

Figured this out.

Below is the statement from MySQL doc:

If you use the Linux server RPM package (MySQL-server-VERSION.rpm), the mysql.server script is installed in the /etc/init.d directory with the name mysql. You need not install it manually. Some vendors provide RPM packages that install a startup script under a different name such as mysqld.

So i believe this is my case.


All times are GMT -5. The time now is 03:07 AM.