MySQL刚安装完只认得的主机是:localhost和127.0.0.1,如果你要让你机上的IP可以正常登录有两种办法:
一是对你的IP 172.16.1.10 进行授权
grant privileges on dbname.* to "user "@ "172.16.1.10 " identified by "password ";
...
分类:
数据库 时间:
2014-07-13 00:05:59
阅读次数:
498
Linux下开启MySQL的远程连接基于安全考虑root账户一般只能本地访问,但是在开发过程中可能需要打开root的远程访问权限。下面是基本的步骤:1、登录到mysql中,为root进行远程访问的授权,执行下面的命令:mysql> GRANT ALL PRIVILEGES ON *.* TO roo...
分类:
数据库 时间:
2014-07-10 16:21:22
阅读次数:
285
登陆mysqlmysql -u username -p创建用户名配置权限,这里为该用户配置tablename表的全部权限,也可以指定GRANT ALL PRIVILEGES ON tablename.* TO 'username'@'hostname' IDENTIFIED BY 'password...
分类:
数据库 时间:
2014-07-10 16:08:59
阅读次数:
209
不足
即使开启hive权限认证的情况下,任何用户仍然是超级用户,可以通过grant给任何人赋予任何权限,这样权限认证基本没有意义,因此必须在开启权限认证的同时,对执行grant/revoke的实体进行限制,比如只有admin才能 grant privilege on database,只有table owner才能grant privilege on table。BIP中hive目前是没有开...
分类:
其他好文 时间:
2014-07-08 19:07:16
阅读次数:
226
用conn /as sysdba登录数据库。一:先新建用户create user test01 identified by test02(test01为用户名,test02为用户密码)二:赋予数据库操作的基本权限grant connect,resource,dba to test01;三:创建表空间...
分类:
数据库 时间:
2014-07-06 23:54:12
阅读次数:
354
mysql数据库和apache不在同一台服务器时,需要远程连接mysql,这就要对mysql进行远程连接授权,为了安全只允许某些ip可以连接:假如你想root用户从ip 192.168.2.12连接到mysql,并设置密码”123456“,授权方法如下:1,进入mysql:mysql>GRANT A...
分类:
数据库 时间:
2014-07-06 15:24:03
阅读次数:
231
文章转自:http://www.2cto.com/os/201104/86881.html以下是网上的方法,我用的是第一种方法,经测试有效。方法一:# /etc/init.d/mysql stop# mysqld_safe --user=mysql --skip-grant-tables --ski...
分类:
系统相关 时间:
2014-07-03 20:14:44
阅读次数:
272
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges;grant select on weixin.wx_tuijian to 'bbc....
分类:
数据库 时间:
2014-07-02 17:55:37
阅读次数:
229
1、连接服务器登录 >mysql -h 192.168.0.11 -u root -p2、 修改用户密码 >mysqladmin -u root -p 654321 password 1234563、用户权限管理 1)grant on命令用于增加新用户并控制其权限。 grant select,in....
分类:
数据库 时间:
2014-07-02 17:55:00
阅读次数:
277
syntax:contained in:description:Requests a permission that the application must be granted inorder for it to operate correctly. Permissions are grant....
分类:
移动开发 时间:
2014-07-02 09:59:26
阅读次数:
203