每次设置root和远程访问都容易出现问题, 总结了个通用方法, 关键在于实用 step1: # mysql -u root mysql mysql> Grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; //增加远程访问权限mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’; //增加ro
MySQL默认没有开启远程访问的权限,需要手动打开,步骤如下: 1.通过命令行登录2.mysql>update user set host = '%' where user = 'root';这里会报错,但不用管.报错内容是“ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'”3.mysql>flush privileges;4.mysql>quit 完成以上操作如果还是不能远程访问,需要在防火墙中设置一下,放行M
redis默认只允许本地访问,要使redis可以远程访问可以修改redis.conf 打开redis.conf文件在NETWORK部分有说明 ################################## NETWORK ##################################### # By default, if no "bind" configuration directive is specified, Redis listens # for co
一数据库突然连接不上,在自己电脑上使用SQL Developer也连接不上.立即使用SecureCRT连接上了这台服务器,从下面几个方面检查. 1:检查了数据库的状态是否正常 $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 16 11:07:55 2016 Copyright (c) 1982, 2010, Oracle. All Rights Reserved. Connec
登录MySQL: mysql -u root -p db; 如需修改密码,第一次: mysqladmin -u root password NEWPASSWORD 已设置过: mysqladmin -u root -p 'oldpassword' password newpassword 执行以下命令开启远程访问限制 grant all privileges on *.* to 'root'@'192.168.0.1' identified by 'password' with gran
今天在测试12c的temp_undo的时候,准备在备库上测试一下,突然发现备库使用TNS连接竟然失败. 抛出的错误如下: $ sqlplus sys/oracle@testdb as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Thu Dec 8 15:30:10 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. ERROR: ORA-12514: TNS:listene
1.解决不能连接远程postgresql: postgresql默认情况下,远程访问不能成功,如果需要允许远程访问,需要修改两个配置文件,说明如下: 1.postgresql.conf 将该文件中的listen_addresses项值设定为“*”,在9.0 Windows版中,该项配置已经是“*”无需修改. 2.pg_hba.conf 在该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置,或者直接将这一行修改为以下配置 host all all
1. //登录数据库 mysql -u root -pvmwaremysql>use mysql; //%为所有ip都可以远程访问 mysql>update user set host = '%' where user = 'root'; //或直接添加一条语句也行 mysql>insert into user (host,user,password) values('192.168.0.51','root',password('123')); //查看一下修改 mysql>sel