今天使用jedis客户端api连接远程连接redis的时候,一直报错,如下: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: connect at redis.clients.jedis.Connection.connect(Connection.java:164) at redis.clients.jedis.BinaryClient.…
一.修改用户登录密码: mysql> show databases;ERROR 1820 (HY000): You must SET PASSWORD before executing this statementmysql> quitBye[root@rhel204 ~]# mysqladmin -uroot -p password --修改用户密码Enter password: New password: Confirm new password: [root@rhel204 ~]# my…
安装mysql 安装mysql就不做过多的介绍了,相信小伙伴们都可以很轻松的安装 进入mysql命令行 mysql -u用户名 -p密码 新建远程登录的用户 grant all on *.* to admin@'%' identified by '123456' with grant option; flush privileges; 防火墙设置 查看 firewalld 状态 systemctl status firewalld 打开 firewalld systemctl start fir…
默认 bind 127.0.0.1 即绑定本机 IP,只能本机访问,你也可以绑定别的 IP 地址,如果注释掉,表示不限制 IP,所有 IP 都能访问 # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the # internet, binding to all the interfaces is dangerous and will expose the # instance to everybody o…
mysql8.x密码的认证方式变了,需要修改远程认证方式 问题描述 Connection to lab-130-mysql failed.Unable to load authentication plugin 'caching_sha2_password'. 问题解决 方法1 CREATE USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123123'; //修改密码认证方式为mysql_native_passwo…
一 开放mysql mysql的配置文件在/etc/mysql/my.cnf文件内,里面有一行bind-address = 127.0.0.1表示只允许本地访问,将这行注释即可 # bind-address = 127.0.0.1 二 创建新的mysql用户 (1)首先在本地进入mysql数据库的mysql库内 use mysql; (2)创建用户: grant all PRIVILEGES on (*).* to user@'%' identified by 'password'; 这里(*)…