Difference between revisions of "MySQL basics"

From Got Opinion Wiki
Jump to navigation Jump to search
(New page: =Getting Started= ==Connecting to MySQL==)
 
Line 2: Line 2:


==Connecting to MySQL==
==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.

Revision as of 11:52, 15 July 2007

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.