April 8, 2009

Create a MySQL Database from the Command Line

Posted by Dave on April 8, 2009 in mysql

Every now and then I find myself needing to create a MySQL database while on the command line. Often it is just as fast or faster than loading up another program or accessing phpMyAdmin in a browser. So, first things first, we need to connect to the database:
mysql -u root -p
MySQL will prompt for the […]