Mariadb安装远程连接报错解决方案

  1. 安装MariaDB:
  2. yum install mariadb mariadb-server
  3. systemctl start mariadb.service #启动MariaDB
  4. systemctl stop mariadb.service #停止MariaDB
  5. systemctl restart mariadb.service #重启MariaDB
  6. systemctl enable mariadb.service #设置开机启动
  7. mysql_secure_installation#设置密码
  8.  
  9.     出现1045错误:1045 (28000): Access denied for user 'root'@'192.168.0.57' (using password: YES)
  10. 这个错误是在进行远程连接的时候密码正确但是,进行远程授权的时候授权密码错误
  11.     出现1045错误:1045 (28000): Access denied for user 'root'@'192.168.0.57' (using password: NO)
  12. 这个错误是单纯的密码错误,就别纠结了
  13.     出现1130错误:1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server 
  14. 这个错误是因为没有进行远程连接授权,给远程授权就行了
  15.     GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的MariaDB密码' WITH GRANT OPTION;
  16.     flush privileges;
  17. 执行以上两句语句就能解决
  18. 出现2003错误是防火墙原因,是因为防火墙开启数据库端口没打开
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值