2015-06-14 105 views
0

我想從命令行運行MYSQL服務器,並且執行mysql -u root -p command時出現上述錯誤。我試圖糾正下面提到的日誌後面的問題,但同樣的錯誤再次出現。錯誤2003(HY000):無法連接到'localhost'(10061)上的MySQL服務器 - MYSQL命令行連接

LOG DATA:

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysqld -nt --standalone --console 
150615 0:30:10 [Warning] option 'new': boolean value 't' wasn't recognized. Set 
to OFF. 
150615 0:30:10 [Note] mysqld (mysqld 5.5.44) starting as process 3768 ... 
150615 0:30:10 [Note] Plugin 'FEDERATED' is disabled. 
150615 0:30:10 InnoDB: The InnoDB memory heap is disabled 
150615 0:30:10 InnoDB: Mutexes and rw_locks use Windows interlocked functions 
150615 0:30:10 InnoDB: Compressed tables use zlib 1.2.3 
150615 0:30:10 InnoDB: Initializing buffer pool, size = 675.0M 
150615 0:30:10 InnoDB: Completed initialization of buffer pool 
InnoDB: Error: space header page consists of zero bytes in data file C:\MySQL Da 
tafiles\ibdata1 
150615 0:30:10 InnoDB: Could not open or create data files. 
150615 0:30:10 InnoDB: If you tried to add new data files, and it failed here, 
150615 0:30:10 InnoDB: you should now edit innodb_data_file_path in my.cnf back 

150615 0:30:10 InnoDB: to what it was, and remove the new ibdata files InnoDB c 
reated 
150615 0:30:10 InnoDB: in this failed attempt. InnoDB only wrote those files fu 
ll of 
150615 0:30:10 InnoDB: zeros, but did not yet use them in any way. But be caref 
ul: do not 
150615 0:30:10 InnoDB: remove old data files which contain your precious data! 
150615 0:30:10 [ERROR] Plugin 'InnoDB' init function returned error. 
150615 0:30:10 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 

150615 0:30:10 [ERROR] Unknown/unsupported storage engine: INNODB 
150615 0:30:10 [ERROR] Aborting 

150615 0:30:10 [Note] mysqld: Shutdown complete 

回答

0
150615 0:30:10 InnoDB: Could not open or create data files. 

運行mysqld作爲管理員用戶。您可以使用windows命令runas作爲管理員從控制檯運行。

+0

我試圖以管理員用戶身份從/ bin運行mysqld服務,同時連接到服務器時再次出現錯誤。這是MySQL 5.6版的錯誤嗎?我不確定。 – Prady

相關問題