Create a database with a user which have full access.
Example data:
Notes:
CREATE USER 'u_example'@'localhost' IDENTIFIED BY 'WXJ07sf7lO7X4kzxjA47j7diQ4Z309628XS3Xm5D1L'; CREATE DATABASE db_example; GRANT ALL PRIVILEGES ON db_example.* TO 'u_example'@'localhost'; FLUSH PRIVILEGES;
Example data:
DROP DATABASE db_example; DROP USER u_example@'localhost';
To make use of the MySQL query cache, the statements have to be exactly the same (including case):
Following statements are treated differently by the cache but deliver the same results:
More details: How the Query Cache Operates