AbyssalSwamp  ActivaUser
» Guest:  Register | Login | 会员列表

RSS subscription to this AbyssalSwamp  

Previous thread Next thread
     
Title: 如何将mysql注册成服务  
 
Phoenix001





UID 305208
Digest 0
Points 0
Posts
码币MB 0 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 10
Register 2019-5-27
Status offline
如何将mysql注册成服务

(1)进入到mysql的安装目录的bin目录下:

    cd D:mysql5.6读服务器端口3307in

(2)然后执行注册服务命令

    mysqld install 服务名

  启动服务用:net start 服务名

  停止服务用:net stop 服务名

  删除服务用:sc delete 服务名

如果一台机器上要安装多台mysql,一定要指定mysql的配置文件的路径
mysqld install mysql --defaults-file=G:mysql-5.6.32-winx64my-default.ini

否则同时只能启动1台mysql。


2222.png
————————————————

2022-8-19 14:29#1
View profile  Blog  Send a short message  Top
     


  Printable version | Recommend to a friend | Subscribe to topic | Favorite topic  


 


All times are GMT+8, and the current time is 2026-1-14 01:31 Clear informations ->sessions/cookies - Contact Us - CAFFZ - ZAKE