運行環境:
MySQL 5.1.41 win32 ZIP 非安裝版
MySQL GUI Tools 5.0(版本1.2.17.0)mysql
運行MySQLAdministrator時提示:
服務器服務或配置文件不能找到。啓動參數和服務節所以不可用。
Either the server service or the configuration file could not be found. Startup variables and service section are therefore disabled sql
解決辦法以下:服務器
C:/mysql-5.1.41-win32/bin>mysqld --install MySQL --defaults-file=c:/my.ini
Service successfully installed.spa
C:/mysql-5.1.41-win32/bin>net start MySQL
MySQL 服務正在啓動 .
MySQL 服務已經啓動成功。.net
C:/mysql-5.1.41-win32/bin>server
一、經過執行mysqld --install命令能夠安裝MySQL服務,同時指定配置文件my.ini的位置
二、經過執行net start 命令,啓動MySQL服務
這時你再運行MySQLAdministrator時,就不會再報錯了。blog
參考資料rem
mysqld --verbose --help 查看幫助
刪除MySQL服務
C:/mysql-5.1.41-win32/bin>mysqld --remove MySQL
中止MySQL服務
net stop MySQLit
參考:http://blog.csdn.net/joeduke/article/details/4938556io