How do I create a new database in MySQL?

Lâm Phung

New member
How do I create a new database in MySQL?
Answer
To create a MySQL database and user, follow these steps:
  1. At the command line, log in to MySQL as the root user: mysql -u root -p.
  2. Type the MySQL root password, and then press Enter.
  3. Type q to exit the mysql program.
  4. To log in to MySQL as the user you just created, type the following command.
 

Tìm kiếm

Back
Top