安装后无法连接到“本地主机"(10061)上的MySQL服务器 [英] Can't connect to MySQL server on 'localhost' (10061) after Installation

查看:141
本文介绍了安装后无法连接到“本地主机"(10061)上的MySQL服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上使用 mysql-installer-5.5.20.0.msi 安装了MySQL. 在cmd窗口中,我运行"mysqlshow -u root -p".它要求输入密码,然后返回以下错误:无法连接到'localhost'上的MySQL服务器(10061)".这是部分失败/成功安装的错误提示.

I installed MySQL using mysql-installer-5.5.20.0.msi on Windows 7. From the cmd window, I run "mysqlshow -u root -p". It asked for a password, then returned this error: "Can't connect to MySQL server on 'localhost' (10061)" This is a bad indication of partially failed/successful installation.

阅读该页面后, http://dev.mysql .com/doc/refman/5.5/en/windows-troubleshooting.html ,它告诉我在C:\ Program Files \ MySQL \ MySQL Server 5.5 \ data中找到错误日志(.err).该目录存在,但是没有日志文件.

After reading the page, http://dev.mysql.com/doc/refman/5.5/en/windows-troubleshooting.html, it told me to find an error log (.err) in C:\Program Files\MySQL\MySQL Server 5.5\data. The directory exists but there is no log file.

我觉得这与Windows 7的严格安全性有关,尤其是在安装基于Unix的软件时.是的,我是PC上的管理员.

I have a feeling this is related to the tight security of Windows 7, especially when installing a Unix based software. And yes, I am the Administrator on my PC.

任何帮助或建议,我们感激不尽.而且,我可以通过回答Java和SQL查询问题来回馈您.

Any help or suggestions is appreciated. And I can return a favor by answering Java and SQL query questions.

推荐答案

Windows服务器用户非常容易解决此问题

this issue is very to solve by windows server users

  1. 转到此路径 C:\ Program Files \ MySQL \ MySQL Server 5.1 \ bin

  1. go to this path C:\Program Files\MySQL\MySQL Server 5.1\bin

运行此工具"MySQLInstanceConfig.exe"

run this tool "MySQLInstanceConfig.exe"

再次配置状态并解决问题

and config the instatnce again and problem solved

这篇关于安装后无法连接到“本地主机"(10061)上的MySQL服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆