Create Database CREATE DATABASE {table name}; Create User CREATE USER '{user name}'@'localhost' IDENTIFIED BY '{pass}'; Give user DB access GRANT ALL ON {table name}.* TO '{user name}'@'localhost';