Home >Database >Mysql Tutorial >How to modify the mysql startup directory?

How to modify the mysql startup directory?

青灯夜游
青灯夜游Original
2020-10-12 10:50:293421browse

Modification method: 1. Stop the MySql service in the "Service" window; 2. Open the registry, find the service you want to change the path in the MySql directory under "HKEY_LOCAL_MACHINE", double-click the "ImagePath" key name, Just modify the numerical data to the specified startup path.

How to modify the mysql startup directory?

(Recommended tutorial: mysql video tutorial)

Modify Mysql startup directory path

First stop MySql in the service (Start->Run->services.msc->Enter) and find the Mysql service to stop;

In the registry (Start->Run->regedit->Press Enter);

Find the service you want to change the path in the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySql] directory. The key name is "ImagePath";

Double-click "ImagePath" to modify the numerical data;

Default value: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt. exe MySQL

Related recommendations:php training

The above is the detailed content of How to modify the mysql startup directory?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn