Home - Help & Support - Contact Us
    

How Do I Access MySQL Using SSH?

The steps to access your MySQL database vary depending on whether Plesk is installed on your server.

To Access MySQL Using SSH (Plesk installed)

  1. Log on to your server.
  2. At the command line, type su -. This gives you root access.
  3. At the command line, type mysql -uadmin -p`cat /etc/psa/.psa.shadow`

    NOTE: To reset your MySQL password, at the command line, type mysqladmin -u admin -psetup password $PW

To Access MySQL Using SSH (Plesk not installed)

  1. Log on to your server.
  2. At the command line, type su -. This gives you root access.
  3. At the command line, type mysql -uroot -p
  4. Enter your MySQL root password.

    NOTE: MySQL's default root password is an empty string (no password is set).

Rated:NR/0 Votes
285 Views
More Articles From Remote Connection
More Articles From Remote Connection
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
How do I update my max clients setting?
To update your max clients setting using SSH: Log on to your server. At the command line, type su - . ...
How do I update my max clients setting?
To update your max clients setting using SSH: Log on to your server. At the command line, type su - . ...
Accessing Your Server Using Putty
To access your server via the Putty SSH client: Open Putty and select SSH. The default port is changed to 22. ...
How do I reset my MySQL Password on my Dedicated Linux Server?
To Reset Your MySQL Password on a Dedicated Linux Server To stop MySQL and restart in safe mode: At the command ...
How do I reset my MySQL Password on my Dedicated Linux Server?
To Reset Your MySQL Password on a Dedicated Linux Server To stop MySQL and restart in safe mode: At the command ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.