MySQL basics

From Got Opinion Wiki
Jump to navigation Jump to search

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.