MySQL | Create a new database

To create a new MySQL database follow this steps:

1. Access to MySQL console using a privileged user, in this case root:

Linux console
$ mysql -u root -p

2. Create database.

Linux console
mysql > CREATE DATABASE ”databasename”;

Now, you can add a user to the databaseor you can start populating it.


About javier

Mexicano, Ingeniero en Sistemas egresado del Instituto Tecnológico de Durango, Maestro en Software Libre por la Universidad Autónoma de Chihuahua. Apasionado de medio tiempo de la fotografía y guitarrista de closet.
This entry was posted in MySQL, Tips. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *