Chinaunix

标题: 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]
");(设置用户密码)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8700/showart_76628.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2