存档

文章标签 ‘用户,数据库’

# vi mysqlusers.txt

create database dataname;
grant all privileges on dataname.* to username@localhost identified by ‘password;
flush privileges;

# /usr/local/mysql/bin/mysql -u root -p password < mysqlusers.txt

[......]

继续阅读

四 26th, 2010 | Filed under Unix