![](/img/trans.png)
[英]MySql Error ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
[英]Error 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)— MYSQL Command line connectivity
我正在嘗試從命令行運行MYSQL Server,並且在執行mysql -u root -p command
時遇到上述錯誤。 我嘗試按照以下提到的日志糾正問題,但再次出現相同的錯誤。
日志數據:
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
150615 0:30:10 InnoDB: Could not open or create data files.
以admin用戶身份運行mysqld
。 您可以使用Windows命令runas
以admin身份從控制台運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.