一切都很好,我有Windows8和MySQL 5.6工作台。
昨天,我升级到Windows8.1,这使PC运行得更好,但却把MySQL搞砸了。
当我进入工作台时,我可以看到我的旧连接,但是通过单击它,我得到:
Cannot Connect to Database Server
Your connection attempt failed for user 'root' from your host to server at
127.0.0.1:3306:Can't connect to mysql server on '127.0.0.1'(10061)
Please:
1. Check that mysql is running on server 127.0.0.1
2. Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
3. Check the root has rights to connect to 127.0.0.1 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 127.0.0.1 connecting from the host address you're connecting from the host address you're connecting from.发布于 2013-10-22 10:28:56
嗯,卸载工作台并重新安装它就成功了。没有删除所有模式。
发布于 2013-11-13 08:55:14
重新安装mysqld服务确实会使数据库服务器再次启动,但是您会发现您的数据库丢失了,所有的用户详细信息也是如此!
在Windows 8下,MySQL将其数据库存储在C:\ProgramData\MySQL\MySQL Server 5.5\data下,而在8.1下则全部转移到C:\Program \MySQL\MySQL服务器5.5\data。
解决这一问题的快速办法是:
嘿,你的数据库和用户凭证回来了。
发布于 2013-11-14 11:24:24
升级到Windows8.1之后,您要么需要运行MySQL配置向导
http://dev.mysql.com/doc/refman/5.1/en/mysql-config-wizard-starting.html
但是我无法让它工作,所以不得不重新安装MySQL服务器。
然后将其安装为服务,并指向我以前的数据库:
mysqld --install MySQL --defaults-file=C:\MySQL\data\my.ini通过运行来检查它是否工作
mysql -u username -p password
show databases;https://stackoverflow.com/questions/19514279
复制相似问题