SHOW DATABASES;
Lists only those databases for which the user have some kind of privilege (or if the user have the global SHOW DATABASES privilege).
CREATE DATABASE music_db;
DROP DATABASE music_db;
USE music_db;
Before performing any table manipulations, you need to select the database on which they will be performed.
CREATE USER 'music_db_admin'@'localhost' IDENTIFIED BY '1234';
If user exists, an error will be thrown.
DROP USER 'music_db_admin'@'localhost';
If user did not exists, an error will be thrown.
GRANT [type of permission]
ON [database name].[table name]
TO ‘[username]’@'host’;
GRANT ALL PRIVILEGES ON music_db.* TO 'music_db_admin'@'localhost';
REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’;
Always be sure to reload all the privileges.
FLUSH PRIVILEGES;
SELECT user FROM mysql.user;
'File' => 'Run SQL script...' and selecting the 'music_db_schema.sql' file you have downloaded
.