Crear base de datos y usuario en MySQL
Para crear una nueva base de datos accedemos con un usuario que tenga privilegio create o con el usuario root a la base de datos y tecleamos:
mysql> create database mibasededatos;
Para asignar un usuario a esa base de datos introducimos la siguiente query:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
TEMPORARY TABLES, LOCK TABLES
ON mibasededatos.*
TO ‘username’@'localhost’ IDENTIFIED BY ‘password’;
2007
29
Oct
- Posted by tru3n0 at 09:15 pm
- Permalink for this entry
- Filed under: MySQL
- RSS comments feed of this entry
- TrackBack URI
No comments
Leave a comment