在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

怎么解决数据库ERROR 2003问题

122次阅读
没有评论

共计 2900 个字符,预计需要花费 8 分钟才能阅读完成。

这篇文章主要介绍“怎么解决数据库 ERROR 2003 问题”,在日常操作中,相信很多人在怎么解决数据库 ERROR 2003 问题问题上存在疑惑,丸趣 TV 小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么解决数据库 ERROR 2003 问题”的疑惑有所帮助!接下来,请跟着丸趣 TV 小编一起来学习吧!

[root@ora102 ~]# mysql -uroot -pchinabidding -h292.168.8.247

Warning: Using a password on the command line interface can be insecure.

排查问题:

1)网络是通的

ERROR 2003 (HY000): Can t connect to MySQL server on 192.168.8.247 (113)

[root@ora102 ~]# ping  192.168.8.247

PING 192.168.8.247 (192.168.8.247) 56(84) bytes of data.

64 bytes from 192.168.8.247: icmp_seq=1 ttl=64 time=0.510 ms

64 bytes from 192.168.8.247: icmp_seq=2 ttl=64 time=0.446 ms

64 bytes from 192.168.8.247: icmp_seq=3 ttl=64 time=0.475 ms

2)权限是没问题的

MySQL [(none)] select host,user,password from mysql.user;

+———–+——+——————————————-+

| host      | user | password                                  |

+———–+——+——————————————-+

| localhost | root | *2548EFB13B516547C44482A519B886726A3B8E42 |

|%| root | *2548EFB13B516547C44482A519B886726A3B8E42 |

| 127.0.0.1 | root | *2548EFB13B516547C44482A519B886726A3B8E42 |

| ::1       | root | *2548EFB13B516547C44482A519B886726A3B8E42 |

3)vi /etc/my.cnfi 查看参数 bind-address   是否设置成了  = 127.0.0.1

我压根没有设置这个参数,这个参数是默认是 127.0.0.1,限制只能本地登录。

4)查看防火墙状态,如下,active 的,防火墙的是开的。

bogon:root@~ service  iptables status

Redirecting to /bin/systemctl status  iptables.service

● iptables.service – IPv4 firewall with iptables

Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)

Active: active (exited)since Wed 2017-12-06 15:01:37 CST; 2s ago

Process: 21617 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)

Process: 22369 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)

Main PID: 22369 (code=exited, status=0/SUCCESS)

Dec 06 15:01:37 bogon systemd[1]: Starting IPv4 firewall with iptables…

Dec 06 15:01:37 bogon iptables.init[22369]: iptables: Applying firewall rules: [ OK  ]

Dec 06 15:01:37 bogon systemd[1]: Started IPv4 firewall with iptables.

查看端口,然后尝试去远端 telnet 这个端口是否是同的。

MySQL [(none)] show global variables like port

+—————+——-+

| Variable_name | Value |

+—————+——-+

| port          | 3306  |

+—————+——-+

1 row in set (0.00 sec)

telne 果然是不通的

[root@ora102 ~]# telnet 192.168.8.247 3306

Trying 192.168.8.247…

telnet: connect to address 192.168.8.247: No route to host

在源段关闭防火墙:

bogon:root@~ service  iptables stop

Redirecting to /bin/systemctl stop  iptables.service

永久关闭:

bogon:root@~ chkconfig iptables on

再次在远程登陆,正常了。。。。

[root@ora102 ~]# mysql -uroot -pchinabidding -h292.168.8.247

Warning: Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 21

Server version: 5.5.29-log Source distribution

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type help; or \h for help. Type \c to clear the current input statement.

mysql

到此,关于“怎么解决数据库 ERROR 2003 问题”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注丸趣 TV 网站,丸趣 TV 小编会继续努力为大家带来更多实用的文章!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计2900字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 一区二区三区高清在线观看 | 国产午夜亚洲精品久久www | 久久久免费| 国产99福利视频在线 | 国内精品久久久久影院老司 | 久久91久久91精品免费观看 | 亚洲av无码专区首页 | 成人奭片免费观看 | 亚洲国产天堂久久综合 | 中文字幕丰满伦子无码 | 在线无码午夜福利高潮视频 | 成人无码α片在线观看不卡 | 精品精品国产高清a毛片牛牛 | 久久99久久99基地看电影 | 欧美色a电影精品aaaa | 久久超乳爆乳中文字幕 | 中文字幕日韩在线 | 99热久久国产精品免费看 | 天天天综合 | 中文字幕一区中文亚洲 | 午夜宅男在线永久免费观看网 | 国产精品久久久久桃色tv | 亚洲乱色熟女一区二区三区丝袜 | 亚洲综合国产精品第一页 | 香港三日本三级少妇三级99 | 禁网站在线观看免费视频 | 亚洲高清国产一区二区三区 | 精品色综合| 日韩 欧美 国产 亚洲 中文 | 四虎影视免费在线 | 变态 另类 欧美 大码 日韩 | 国产乱码在线观看 | 国产一区二区三区在线免费观看 | 毛片成人| 欧洲亚洲一区二区三区 | 四小虎免费永久观看 | 亚洲一区 日韩精品 中文字幕 | 无遮无挡三级动态图 | 亚洲日韩精品a∨片无码加勒比 | 亚洲精品午夜视频 | 超激情碰碰碰啪在线视频 |