How Do I Restart MySQL Server on CentOS?

How Do I Restart MySQL Server on CentOS?

Postby frogger » Wed Aug 20, 2008 12:35 pm

I am used to windows and new to this linux environment. I have been able to set an ssh tunnel up to my CentOS server and have made the changes I need to make in the database. Now I want to restart MYSQL for the changes to take effect but I cant restart the service. I tried

service mysql restart
respose
mysql: unrecognized service

But that dosent work. I would just restart the whole box but I dont have physical access to the machine either.

User avatar
frogger
Newbie
Newbie
 
Posts: 9
Joined: Mon Oct 30, 2006 9:19 pm

Re: How Do I Restart MySQL Server on CentOS?

Postby Darwin » Wed Aug 20, 2008 12:51 pm

First login as root user. Now type the following command
If you are using mysql on RedHat Linux (Fedora Core/Cent OS)

* To start mysql server:
# /etc/init.d/mysqld start

* To stop mysql server:
# /etc/init.d/mysqld stop

* To restart mysql server
# /etc/init.d/mysqld restart

Tip: Redhat Linux also supports service command, which can be use to start, restart, stop any service:
# service mysqld start
# service mysqld stop
# service mysqld restart

User avatar
Darwin
Full Member
Full Member
 
Posts: 111
Joined: Mon Oct 09, 2006 11:16 am
Location: Bradenton, FL


Return to MYSQL

Who is online

Users browsing this forum: No registered users and 1 guest

cron