自己的问题是ERROR 2003(搞到最后才知道。)
如果知道自己问题是ERROR 2003 直接去百度大佬们吧
如何知道自己的错误类型?
进入workbench -> help ->show log file
找到最近的日志文件
以下无用,记录自己呆呆经历~
自己的MySQL连接不上数据库了,显示如下,尝试解决一波!
先来每一条瞅瞅。。啥意思
1.Check that MySQL is running on address localhost
1)先尝试关闭360 白搭
2)检查是否ping通
cmd 输入ping Hostname
不是这儿的问题。
3)防火墙
入站规则内有port 3306,改一个试试
尝试添加新的port
2.Check that MySQL is reachable on port 3306 (note: 3306 is the default, but this can be changed.
尝试更改port
把Port 改成3506 白搭…
3.Check the user root has rights to connect to localhost from your address (MySQL rights define what clients can connect to the server and from which machines)
4.Make sure you are both providing a password if needed and using the correct password for localhost connecting from the host address you’re connecting from
3和4超过两行英语了,能力范围之外不干了(狗头)
人麻了。
这是三天之后,考完试了继续来挣扎一下。
最近更新windows挺频繁的,想着会不会MySQL也需要更新,是一波!
点help 选择check for updates
真的有新版本,更新,然后就能连接到数据库了。。离谱
5.24人自闭后又来了!
具体那里提示我忘了,总之让我查询日志文献,咱就查查试试。。
进入workbench -> help ->show log file
找到最近的日志文件
找到错误类型了!
Error 2003 connecting to server, assuming server is down and opening editor with no connection
Error 2003 解决办法百度大佬。。
回过头了看,问题其实就出在第一条Check that MySQL is running on address localhost,我悟了啊。。**遇到问题,先看错误类型是啥。**不然这边搞搞,那边弄弄,最后多是无用功,