经过一些病毒活动后,我无法连接到笔记本电脑上的MySQL数据库。当我查看任务管理器(我正在使用Windows 7)时,没有任何MySQL实例的迹象。我无法连接通过提示窗口或MySQL工作台。无法连接到MySQL数据库
我需要重新安装吗?我可以在不丢失数据的情况下重新安装吗?
有什么建议吗?
更新: 以下是mysql workbench中的错误消息。
UPDATE2:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users>net start mysql
System error 5 has occurred.
Access is denied.
C:\Users>
UPDATE3:
当我在cmd窗口中键入netstat -a
,似乎没有要任何事情上127.0.0.1:3306。
UPDATE4:
C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -u root
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
UPDATE5:
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
count 0
debug-check FALSE
debug-info FALSE
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set (No default value)
host (No default value)
no-beep FALSE
port 3306
relative FALSE
shared-memory-base-name (No default value)
socket (No default value)
sleep 0
ssl FALSE
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cert (No default value)
ssl-cipher (No default value)
ssl-key (No default value)
ssl-verify-server-cert FALSE
user (No default value)
verbose FALSE
vertical FALSE
connect_timeout 43200
shutdown_timeout 3600
C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqld --console
120207 14:06:00 [Warning] '--default-character-set' is deprecated and will be re
moved in a future release. Please use '--character-set-server' instead.
120207 14:06:00 [Note] Plugin 'FEDERATED' is disabled.
120207 14:06:00 InnoDB: Initializing buffer pool, size = 100.0M
120207 14:06:00 InnoDB: Completed initialization of buffer pool
120207 14:06:00 InnoDB: Operating system error number 5 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory. It may also be you have created a subdirectory
InnoDB: of the same name as a data file.
InnoDB: File name .\ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
你有一些代码? – 2012-02-07 03:28:21
你有软件防火墙吗? – bobsoap 2012-02-07 03:32:40
nope,没有防火墙 – screechOwl 2012-02-07 03:33:27