Database Developers' Quick-Reference to MySQL
My own experience up to this point is with commercial DBMS's, especially Microsoft's SQL Server. Here are some notes and links I have found helpful. Hopefully they will help you as well.
I'm actually looking for something for experienced DB developers ... a quick list to get going.
Log Into MySQL from the OS Prompt
- Linux/Unix: mysql_dir/bin/mysql -h hostname -u root -p where mysql_dir is replaced by the actual directory path.
- Windows: mysql -u UserName -p DBName
- The Windows example assumes that mysql is already on your path
- LOCALHOST is assumed as the host name (at least under Windows ...) but -h HostName can still be specified
- -p makes it query for a password. You do not specify the password on the command line. Omitting -p works only if UserName requires no password.
- DBName is optional. If not specified, the mysql DB becomes the current DB.
Creating a database:
At the MySQL Prompt (available from your start menu): create database DBNAME;use DBNAME;


