How to restart Centos Apache and MySQL

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

Tags:

Comments are closed

Latest Comments