Как создать базу данных и пользователя к ней
Ноябрь 19th, 2010
mysql -u root -p
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';
CREATE DATABASE db1;
grant all privileges on db1.* to user1@localhost;
mysql -u root -p
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';
CREATE DATABASE db1;
grant all privileges on db1.* to user1@localhost;