經過一些病毒活動後,我無法連接到筆記本電腦上的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