标题: mysql安装 [打印本页] 作者: sunadmin 时间: 2006-02-20 14:34 标题: mysql安装 # groupadd mysql
# useradd -g mysql mysql
# cd /usr/local
# gunzip
基本操作命令:
create database roller;(创建数据库)
mysql> grant all on roller.* to user1 identified by '123456';
(赋予权限)
mysql> grant all on roller.* to
[email=user1@localhost]user1@localhost[/email]
identified by '123456';(赋予权限)
set password for
[email=user1@localhost=password("123456]user1@localhost=password("123456[/email]
");(设置用户密码)