I want to create a database for a particular (existing) user in MySQL. How do I do that ?
What i tried –
CREATE USER 'myuser' @'%' IDENTIFIED BY 'mypass';
CREATE DATABASE myuser.myDatabase;
The second line is wrong. I cannot find the proper syntax.
Please tell me my mistake.
when i create a user named test and create a db named test in phpmyadmin
it runs:
this may help you.