Vera Javeen's Blog

11/07/2009

How to know if MySQL Server is running?

Filed under: ubuntu terminal command — vjma @ 5:57 am

Here are some of my compilations using command line.

For those who are lost in linuxworld here is my simple guide.

1. If you already install MySQL, look at the processes in System/Administration/System Monitor to see if MySQL is running. If you are on the command line try

~$ : ps -aux | grep mysql

If it is running, you should be able to login from the console with this command

~$ : mysql -u username -p”

it will ask the password. It assumes the host name is localhost, i.e. the machine itself.

Other way around to be sure it is running

~$ : sudo /etc/init.d/mysql status

or

~$ : mysql -u root -p

If in case you forget or don’t remember your MySQL password this command will help you.

~$ : sudo dpkg-reconfigure mysql-server-5.0

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.