The CREATE DATABASE command is employed to establish a new SQL database.
The subsequent SQL statement creates a database named “testDB”:
| CREATE DATABASE testDB; |
| Note: Ensure you possess administrative privileges before creating any database. After creating a database, you can verify its existence in the database list using the following SQL command: SHOW DATABASES; |