1、下载mysql  https://dev.mysql.com/downloads/installer/  选择windows操作系统和位数

window下mysql 启动

安装并添加环境变量.

2、向window注册mysql服务,必须使用管理员权限打开cmd,输入命令

mysqld.exe --install MySql --defaults-file="D:\phpstudy\PHPTutorial\MySQL\my.ini"

成功的返回结果为  Service successfully installed.

window下mysql 启动

 

注意打开cmd时使用管理员权限打开  否则报错 Install/Remove of the Service Denied!

3、启动服务 

net start mysql

 window下mysql 启动

 

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2021-07-03
  • 2021-12-02
  • 2021-09-02
  • 2022-01-22
  • 2021-11-30
  • 2021-12-18
猜你喜欢
  • 2022-02-02
  • 2021-06-09
  • 2021-11-30
  • 2021-12-30
  • 2021-04-02
  • 2021-06-27
  • 2021-07-09
相关资源
相似解决方案