mysql 服務不見了的解決辦法

來源:互聯網
上載者:User

標籤:io   ar   sp   strong   on   檔案   資料   art   bs   

昨天開啟電腦mysql突然串連不了了,去服務裡找,卻找不到mysql服務了


解決:
5.0版本:
開始->運行->cmd,進到mysql安裝的bin目錄
D:\MySQL\bin>mysqld-nt.exe -install
Service successfully installed.
這個時候重新整理服務列表mysql就出現了,啟動就可以了,或者可以直接在cmd中做如下操作
D:\MySQL\bin>net start mysql

MySQL 服務已經啟動成功。

5.1及後續版本:
D:\MySQL\bin>mysqld.exe -install
Service successfully installed.

D:\MySQL\bin>net start mysql

 

PS:本機電腦 無法啟動mysql服務 錯誤1067:進程意外中止

無論安裝何版本的mysql,在管理工具的服務中啟動mysql服務時都會在中途報錯。內容為:在 本機電腦 無法啟動mysql服務 錯誤1067:進程意外中止。   

經過多方求教,得解決方案如下    

尋找系統(後來驗證應該為windows目錄)目錄下的my.ini檔案,編輯內容(如果沒有該檔案,則建立一個),至少包含basedir,datadir這兩個基本的配置。    

[mysqld]    

# set basedir to installation path, e.g., c:/mysql    

# 設定為MYSQL的安裝目錄    

basedir=D:/www/WebServer/MySQL    

# set datadir to location of data directory,    

# e.g., c:/mysql/data or d:/mydata/data   

# 設定為MYSQL的資料目錄    

datadir=D:/www/WebServer/MySQL/data    

另外,要主意   

[WinMySQLadmin]   

Server=D:/www/WebServer/MySQL/bin/mysqld-nt.exe    

user=root    

password=xxxxxxxx    

#以上是設定WinMySQLadmin的配置   

[Client]    

user=root   

password=xxxxxxxx   

 

hehe~ :) 解決了    

my.ini 檔案內容如下.我自己改的,就好了,嘿嘿   

[mysqld]    

# set basedir to installation path, e.g., D:/mysql   

# 設定為MYSQL的安裝目錄    

basedir=D:/mysql   

# set datadir to location of data directory,   

# e.g., d:/mysql/data or d:/mysql/mydata/data  

 # 設定為MYSQL的資料目錄   

datadir=D:/MySQL/data  

mysql 服務不見了的解決辦法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.