一. 主服务器Master1. 设置权限用户设置只允许192.168.120.27访问的用户:grant replication slave,super,reload on *.* to forslave@192.168.120.27 identified by 'zhijiatest';2. 主数...
分类:
数据库 时间:
2015-04-17 17:47:01
阅读次数:
153
1. 修改root权限GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'root' WITH GRANT OPTION;-- 设置特定主机才拥有访问特权GRANT ALL PRIVILEGES ON *.* TO 'root'@'loc...
分类:
数据库 时间:
2015-04-17 17:41:54
阅读次数:
236
1,远程防火墙打开 3306端口,否则报2003错误2,服务器授权 代码:mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES; 接下来使...
分类:
数据库 时间:
2015-04-17 13:21:48
阅读次数:
195
1 Unique identifier (UID) The VICCs are uniquely identified by a 64 bits unique identifier (UID). This is used for addressing eachVICC uniquely and .....
分类:
其他好文 时间:
2015-04-17 01:08:23
阅读次数:
245
1。两台虚拟机主库192.168.20.115从库192.168.20.1162.修改主库vim/etc/my.cnf在[mysql]修改log_bin=mysql-binserver_id=115(这里我是用我的服务器IP作为ID号)3.进入数据库mysql-uroot-p密码grantreplicationslaveon*.*to‘用户‘@‘IP‘identifiedby‘密码‘flushprivileges;4.showm..
分类:
数据库 时间:
2015-04-16 17:53:00
阅读次数:
172
1. 创建和删除用户,mysql中的用户是由用户名和主机名来确定的create user "user_name@host_name" identified by passwd;drop user user_name;---------------也可以直接向mysql.user表添加记录------...
分类:
数据库 时间:
2015-04-14 14:34:45
阅读次数:
207
1. CREATE USER语法:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 例子: CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456'; CREATE USER 'pig'@'...
分类:
数据库 时间:
2015-04-13 15:54:19
阅读次数:
150
mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;
权限1,权限2,…权限n代表select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限。
当权限1,权限2...
分类:
数据库 时间:
2015-04-13 14:45:12
阅读次数:
182
1>创建一个ORACLE 的用户create userusername identified by pws;2>给用户授权grant connect,resource to username;grant select on表或视图名 tousername;注释:在PLSQL中用 Select * f...
分类:
数据库 时间:
2015-04-13 12:36:25
阅读次数:
118
--创建远程数据连接
create database link DB_MZDB11 connect to YTMZTWO identified by YTMZTWO909 using 'MZDB11';
--创建本地目录
create directory db_mz as 'c:';
--授权用户读写
grant read,write on directory db_mz to ...
分类:
数据库 时间:
2015-04-12 10:44:07
阅读次数:
183