How can I access MySQL from the command line?
Posted by - NA - on 14 July 2009 05:22 AM
Please use the following command in SSH to access MySQL through command line:

mysql -h localhost -u username -p

By default you would use the root user with no password if connecting to localhost only. While it does simplify administration it is also a security risk if your server ever gets violated as anyone with a shell can have full access to your MySQL server.

Powered by TurnKey Internet]]>