Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3283157
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: BSD

2007-11-06 01:59:02

shell> mysql -u root -p1234 mysql
mysql> insert into user(Host,User,Password) values ('localhost','_backmysql','databse');
添加一个来自本机的mysql 用户_backmysql,口令为:1234

#mysql –u root –p
mysql>;GRANT FILE ON *.* TO backup@192.168.1.200 IDENTIFIED BY ‘1234’;
mysql>;\exit
开放一个账号backup密码1234给来自IP:192.168.1.200有档案处理的权限

格式:grant 权限 on 数据库名.表名 用户@登录主机 identified by "用户密码";
mysql>;grant select,update,insert,delete on *.* to identified by "1234";

阅读(2549) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~