一、用户 1、创建用户 创建用户u密码为aa。 SQL> create user u identified by aa; 2、为用户赋予权限 这个用户还不能连接数据库,必须为其赋予一些权限才可以。 SQL> grant create session to u; 授权成功。 SQL> conn...
分类:
数据库 时间:
2015-08-11 00:06:18
阅读次数:
217
【转】今天在调试springMVC的时候,在将一个对象返回为json串的时候,浏览器中出现异常:The resource identified by this request is only capable of generating responses with characteristics.....
分类:
其他好文 时间:
2015-08-10 00:15:40
阅读次数:
553
解决方案:网上看了说,更改mysql库的user表,添加一条host为%的数据就可以,但是还是不行。后来,直接登录mysql,给访问加权限就可以了。
执行
[root@iZ25p77kem7Z ~]# GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'userpwd' WITH GRANT OPTION;
就...
分类:
数据库 时间:
2015-08-09 12:36:00
阅读次数:
351
1. CREATE USER语法: CREATE USER 'username'@'host' IDENTIFIED BY 'password';例子: CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456'; CREATE USER 'pig...
分类:
数据库 时间:
2015-08-09 12:14:42
阅读次数:
130
Master上授权从库:```grant replication slave on *.* to slave1@ip identified by 'password';```基于数据库hotcopy备份脚本处理:```[root@iZ232n10udnZ 20150806104509]# lsbac...
分类:
数据库 时间:
2015-08-08 11:41:22
阅读次数:
162
Master上授权从库:```grant replication slave on *.* to slave1@ip identified by 'password';```逻辑备份:```mysqldump --single-transaction --master-data database -...
分类:
数据库 时间:
2015-08-08 10:30:29
阅读次数:
203
Oracle学习笔记一权限分为sysdba,nomal等,系统自带有两个用户,起始密码为空.用户为:SYSTEM,SYS。登录SYSTEM的时候要使用sysdba权限来登录,如果忘记了密码,则打开命令行输入:1.echo%ORACLE_SID%2.setORACLE_SID=orcl(orcl为所要登录数据的实例,可以自己修改)3.sqlpuls/as..
分类:
数据库 时间:
2015-08-08 06:55:50
阅读次数:
125
POJ1160 【Post Office】DescriptionThere is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a sin...
分类:
其他好文 时间:
2015-08-06 16:55:32
阅读次数:
117
出现类似的问题是由于权限问题,授权给root所有sql权限即可;mysql> grant all privileges on *.* to root@"%" identified by ".";Query OK, 0 rows affected (0.00 sec)mysql> flush priv...
分类:
数据库 时间:
2015-08-05 17:50:50
阅读次数:
178
grant all privileges on *.* to root@"%" identified by ".";flush privileges;
分类:
数据库 时间:
2015-08-05 17:49:55
阅读次数:
134