一、创建用户概述:在oracle中要创建一个新的用户使用create user语句,一般是具有dba(数据库管理员)的权限才能使用。create user 用户名 identified by 密码; 注意:oracle有个毛病,密码必须以字母开头,如果以数字开头,它不会创建用户eg、create u ...
分类:
数据库 时间:
2016-04-25 15:06:52
阅读次数:
174
【主库上】
在已有主从同步配置的基础上增加log配置项,打开“全日志”功能。
vim/etc/my.cnf
log=mysqlfull.log
servicemysqldrestart
cat/var/lib/mysql/mysqlfull.log
给mysqlproxy机器授权:
grantallon*.*to‘root‘@‘%‘identifiedby‘123123‘;
【从库上】
在已有主从同步配置..
分类:
数据库 时间:
2016-04-25 01:03:52
阅读次数:
244
【使用yum安装mysql】
yum-yinstallmysql-server
serivcemysqldstart
【mysqlmaster】
主服务器(server1)上:
grantreplicationslaveon*.*to‘mysqlsync‘@‘%‘identifiedby‘123123‘;
配置文件/etc/my.cnf:
[mysqld]
server-id=1001
log_bin=log-bin.log
binlog_ignore-db=mysql,te..
分类:
数据库 时间:
2016-04-25 01:03:22
阅读次数:
219
一, 创建用户: 命令:CREATE USER ‘username’@’host’ IDENTIFIED BY ‘password';(host – 指定该用户在哪个主机上可以登陆,如果是本地用户可用localhost, 如果想让该用户可以从任意远程主机登陆,可以使用通配符%;password可以为 ...
分类:
数据库 时间:
2016-04-24 11:06:33
阅读次数:
171
Starting with Cupcake, individual builds are identified with a short build code, e.g. FRF85B. The first letter is the code name of the release family, ...
分类:
移动开发 时间:
2016-04-23 13:16:04
阅读次数:
154
DB link ,创建完了后总是报密码错误.我感到奇怪.明明密码是对的.怎么可能错误呢. SQL> create public database link kk40 connect to khfx identified by xffsf3 using '1004' SQL> select * fro ...
分类:
数据库 时间:
2016-04-20 18:04:57
阅读次数:
267
用户管理 mysql>use mysql; 查看 mysql> select host,user,password from user ; 创建 mysql> create user zx_root IDENTIFIED by 'xxxxx'; //identified by 会将纯文本密码加密作为 ...
分类:
数据库 时间:
2016-04-19 14:05:40
阅读次数:
216
实验环境:主MySQL服务器源码安装IP地址:172.16.1.1从主MySQL服务器rpm安装IP地址:172.16.1.10从MySQL服务器rpm安装IP地址:172.16.1.11下面开始配置:主MySQL服务器:vi/etc/my.cnf[mysqld]log-bin=a_masterserver-id=1授权给172.16.1.10访问权限grantreplicationslaveon*.*..
分类:
数据库 时间:
2016-04-19 00:35:40
阅读次数:
221
ab复制(主从复制)可以让mysql实现:1.数据的备份(主服务器的数据全部同步到从服务器)2.可以负载均衡减小主服务器的压力3.真正实现mysql的读写分离配置方法主服务器:1.主服务器my.cnf配置cat/etc/my.cnf[mysqld]log-bin=mysql_binserver-id=1不允许重复2.授权,指定从服务器只能..
分类:
数据库 时间:
2016-04-19 00:34:41
阅读次数:
203
主MySQL服务器172.16.1.10授权172.16.1.10权限grantreplicationslaveon*.*to‘slave‘@‘172.16.1.11‘identifiedby‘king123‘;[mysqld]log-bin=aaa_10server-id=1master-host=172.16.1.11master-user=slavemaster-password=king123auto-increment-increment=2auto-increment-offset..
分类:
数据库 时间:
2016-04-19 00:33:12
阅读次数:
244