mysql服務(wù)器無(wú)效的解決辦法:1、按“windows鍵+R”打開(kāi)運(yùn)行對(duì)話(huà)框,輸入命令“cmd”,回車(chē)打開(kāi)DOS窗口;2、輸入“del c:windowstemp*.* /s /q”,等待文件刪除完,MySQL自然會(huì)恢復(fù)正常。
mysql服務(wù)器無(wú)效的解決辦法:
一、
1、遇到這個(gè)問(wèn)題先不要重新安裝MySQL數(shù)據(jù)庫(kù),解決方法需要清理下WIndows的緩存目錄就可以了。
2、按“windows鍵+R”打開(kāi)運(yùn)行對(duì)話(huà)框,輸入命令“cmd”,回車(chē)打開(kāi)DOS窗口。
3、輸入“del c:windowstemp*.* /s /q”,等待文件刪除完,MySQL自然會(huì)恢復(fù)正常。
二,配置文件配置錯(cuò)誤(mysql啟動(dòng)錯(cuò)誤1067的解決 )
問(wèn)題一
刪除%windows%/my.ini 刪除其它地方的my.ini 在mysql安裝目錄下把my-small.ini復(fù)制為my.ini 在my.ini
最后一行插入: CODE: [mysqld] #設(shè)置basedir指向mysql的安裝路徑
basedir=C:mysql-5.1.11-beta-win32 datadir=C:mysql-5.1.11-beta-win32data
重新啟動(dòng)。。。
C:mysql-5.1.11-beta-win32in>net start mysql MySQL
服務(wù)正在啟動(dòng) . MySQL 服務(wù)無(wú)法啟動(dòng)。 系統(tǒng)出錯(cuò)。
發(fā)生系統(tǒng)錯(cuò)誤 1067。 進(jìn)程意外終止。
C:mysql-5.1.11-beta-win32in>mysqld-nt –remove Service successfully removed.
C:mysql-5.1.11-beta-win32in>mysqld-nt –install Service successfully installed.
C:mysql-5.1.11-beta-win32in>net start mysql MySQL 服務(wù)正在啟動(dòng) . MySQL 服務(wù)已經(jīng)啟動(dòng)成功。 C:mysql-5.1.11-beta-win32in>net stop mysql MySQL 服務(wù)正在停止.. MySQL 服務(wù)已成功停止。
問(wèn)題二
Mysql裝好后,重啟電腦第二次發(fā)現(xiàn)服務(wù)無(wú)法啟動(dòng)。提示如下:
————————
MySQL 服務(wù)無(wú)法啟動(dòng)。
系統(tǒng)出錯(cuò)。
發(fā)生系統(tǒng)錯(cuò)誤 1067。
進(jìn)程意外終止。
——————
查看了F:ProgramDataMySQLMySQL Server 5.5data 這個(gè)目錄中的錯(cuò)誤日志,顯示如下內(nèi)容:
130825 20:47:50 [Note] Plugin 'FEDERATED' is disabled.
130825 20:47:50 InnoDB: The InnoDB memory heap is disabled
130825 20:47:50 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130825 20:47:50 InnoDB: Compressed tables use zlib 1.2.3
130825 20:47:50 InnoDB: Error: unable to create temporary file; errno: 2
130825 20:47:50 [ERROR] Plugin 'InnoDB' init function returned error.
130825 20:47:50 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130825 20:47:50 [ERROR] Unknown/unsupported storage engine: INNODB
130825 20:47:50 [ERROR] Aborting
其中核心提示是這句,臨時(shí)文件無(wú)法創(chuàng)建:
130825 20:47:50 InnoDB: Error: unable to create temporary file; errno: 2
因此查看my.ini
[mysqld]區(qū)段內(nèi)加入:
#自己指定的臨時(shí)文件目錄
tmpdir="臨時(shí)目錄"
相關(guān)免費(fèi)學(xué)習(xí)推薦:mysql數(shù)據(jù)庫(kù)(視頻)