Using the following snippet, you will be able to create a database for your WordPress website with an ease.
1 2 | CREATE SCHEMA `your_db_name` ; GRANT ALL PRIVILEGES ON your_db_name.* TO 'your_user_name'@'localhost' IDENTIFIED BY 'your_password'; |
Snippet Source/Credit: Snipplr