Can#39;t connect to MySQL server on #39;localhost#39; (10061) after Installation(安装后无法连接到“localhost(10061)上的 MySQL 服务器)
问题描述
我在 Windows 7 上使用 mysql-installer-5.5.20.0.msi 安装了 MySQL.在 cmd 窗口中,我运行mysqlshow -u root -p".它要求输入密码,然后返回此错误:无法连接到 'localhost' (10061) 上的 MySQL 服务器"这是部分失败/成功安装的不良指示.
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 FilesMySQLMySQL Server 5.5data 中找到错误日志 (.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 FilesMySQLMySQL Server 5.5data. The directory exists but there is no log file.
我感觉这与 Windows 7 的严格安全性有关,尤其是在安装基于 Unix 的软件时.是的,我是我电脑上的管理员.
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 server用户解决
this issue is very to solve by windows server users
去这条路C:Program FilesMySQLMySQL Server 5.1in
go to this path C:Program FilesMySQLMySQL Server 5.1in
运行这个工具MySQLInstanceConfig.exe"
run this tool "MySQLInstanceConfig.exe"
然后重新配置实例,问题就解决了
and config the instatnce again and problem solved
这篇关于安装后无法连接到“localhost"(10061)上的 MySQL 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:安装后无法连接到“localhost"(10061)上的 MySQL 服务器
基础教程推荐
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 在 SQL 中连接多个表 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 无法解决整理冲突 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
