易截截图软件、单文件、免安装、纯绿色、仅160KB

sql权限

sql权限:
创建User:
insert into mysql.user(Host,User,Password)
values("localhost","cordev",password("xasoftorg"));
insert into
mysql.user(Host,User,Password)
values("localhost","corhotfix",password("xasoftorg"));
insert into
mysql.user(Host,User,Password)
values("localhost","corint",password("xasoftorg"));
赋予权限:
grant
all privileges on cordev.* to cordev identified by 'xasoftorg';
grant
all privileges on corhotfix.* to corhotfix identified by 'xasoftorg';
grant
all privileges on corint.* to corint identified by 'xasoftorg';
刷新:
flush
privileges;
用户权限
设置
  1、以root(也可用其它有权限的用户)身份登录
  2、
下面创建一个test用户,密码为test,并且只能对picture数据库进行操作的命令
    mysql>GRANT ALL ON
picture.* TO test IDENTIFIED BY "test";
  GRANT语句的语法看上去像这样:
 
 GRANT privileges (columns) ON what TO user IDENTIFIED BY "password"
WITH GRANT OPTION 
要使用该语句,你需要填写下列部分:
  privileges
授予用户的权限,下表列出可用于GRANT语句的权限指定符:
 权限指定符 权限允许的操作
  Alter
      修改表和索引
  Create      创建数据库和表
  Delete      删除表中已有的记录
 
 Drop    抛弃(删除)数据库和表
  INDEX      创建或抛弃索引
  Insert      向表中插入新行
 
 REFERENCE   未用
  Select     检索表中的记录
  Update      修改现存表记录
 
 FILE       读或写服务器上的文件
  PROCESS    查看服务器中执行的线程信息或杀死线程
  RELOAD
    重载授权表或清空日志、主机缓存或表缓存。
  SHUTDOWN   关闭服务器
  ALL       所有;ALL
PRIVILEGES同义词
  USAGE     特殊的“无权限”权限
添加系统用户:
adduser
oracle
passwd oracle
solar:/home# rm -r oracle
solar:/home# cp
-r mhung oracle
solar:/home# chown -R oracle oracle
solar:/home#
rm -r oracle
solar:


相关文档:

Sql函数大全

---返回表达式中指定字符的开始位置
select charindex('c','abcdefg',1)
---两个字符的值之差
select difference('bet','bit')
---字符最左侧指定数目
select left('abcdef',3)
---返回字符数
select len('abcdefg')
--转换为小字符
select lower('ABCDEFG')
--去左空格后
select ltrim('   &nbs ......

简单但有用的SQL脚本

行列转换
create table test(id int,name varchar(20),quarter int,profile int)
insert into test values(1,'a',1,1000)
insert into test values(1,'a',2,2000)
insert into test values(1,'a',3,4000)
insert into test values(1,'a',4,5000)
insert into test values(2,'b',1,3000)
insert into test values(2, ......

[记录]在命令行中启动 SQL SERVER

启动 MS SQL SERVER (2000 -2008都适用):
cmd>net start mssqlserver
启动 非缺省实例:
cmd>net start mssql$[instance name]
注:命令行需要有Administrator权限。
停止SQLSERVER 服务器:
cmd>net stop mssqlserver
cmd>net stop mssql$[instance name] ......

备份和还原SQL Server及压缩Access数据库

*
 * 功能说明:备份和恢复SQL Server数据库
 * 作者: 刘功勋;
 * 版本:V0.1(C#2.0);时间:2007-1-1
 * 当使用SQL Server时,请引用 COM组件中的,SQLDMO.dll组件
 * 当使用Access中,请浏览添加引用以下两个dll
 *          引用C:/Progra ......

用IP访问SQL Server 2008

1、开始->程序-->Microsoft SQL Server 2005>配置工具->SQL Server Configuration Manager->SQL Server 2005 网络配置 ->“xxx(您的数据库)”的协议,如下图
将“Named Pipes”和“TCP/IP”的状态调成“启用”,方法是在“Named Pipes”和“T ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号