The blog gives you idea of testing and automation testing example of selenium webdriver,SQl and Jmeter, you see the basic example of selenium web driver and get idea how to do automation testing,

How to Restart services of MYSQL Database in Linux through Terminal


Some time Mysql is not Working and we try to login into it and it gave us error or it do not responded in that case you have to Restart the services of mysql.

Below is the following error ?
  1. How do I get mysql prompt in linux terminal?
  2. How I start the mysql server from linux terminal?
  3. How do I get mysql prompt in linux terminal?
  4. How do I login to mysql server from linux terminal?
  5. How do I solve following error?

If you want to Prompt in linux terminal then you have to open terminal in linux and have enter below command

>> mysql -u root - p 
After this you have to enter password, after entered corrected password you are able to login.

-----------------------------------------------------------------------------------------------------------------
  1. How I stop the mysql server from linux terminal ?
If you want to start the mysql server then you have to fire below query 

>> Sudo /etc/init.d/mysql start

If you want to restart the mysql  services then you have to fire below query 

>> Sudo /etc/init.d/mysql restart

If you want to stop the mysql  services then you have to fire below query 

>> Sudo /etc/init.d/mysql stop

mysql is free or it is open source, so many industries used it, some time testing website on mysql and site is not open on your browser then there is mysql connection is problem, for that you have to restart services of my sql. 


No comments

Post a Comment

Powered by Blogger.