I want to create a database where only one user can access the information. Although there are already users created on the server, but only the user I create has to be the only one to have access to a particular database. I'm just getting the reverse "create user for a single database". I am using this syntax to create the database, the user and their permission:
CREATE DATABASE test
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
CREATE USER 'root'@'%' IDENTIFIED BY 'testing';
GRANT ALL ON test.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;