Websites | Photography | Video Editing | 3D Animations

From the Blog

Jan
16

How to restart Centos Apache and MySQL

Posted by Paul Costan on January 16th, 2012 at 11:58 am

Command line as follow:

/etc/init.d/httpd  restart

/etc/init.d/mysqld restart

Or

serice httpd restart

serice mysqld restart

————————————–

Import Database dumps

1) mysql -u root -p -h localhost

2) mysql> create database foo;

3) mysql> exit;

4) mysql -u root -p -h localhost foo < testing_db.sql -------------------------------------- Adding site to your virtual host: /etc/httpd/conf.d/filename.conf -------------------------------------- To view logs go to: # cd /etc/httpd/logs # tail -f test_error_log