/* Try this to create the user: */ CREATE USER 'user'@'hostname'; /* Try this to give it access to the database `dbTest`: */ GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password'; /* * If you are running the code/site accessing MySQL on the same machine, * hostname would be localhost. * * Now, the break down. *