MySQL basics
Getting Started
Connecting to MySQL
To access a database from the command line, use:
mysql -u username -ppassword -h hostname databasename
Note: There is no space between the -p and the password.
To access a database from the command line, use:
mysql -u username -ppassword -h hostname databasename
Note: There is no space between the -p and the password.