


Detailed introduction to the method of modifying the mysql data directory under Win2008 r2
In 2008InstallationmysqlI found that the database directories are all placed on the c drive, which is not safe for the data. The c drive is only placed System, quickly change the mysql directory, otherwise data loss will be in trouble
Change the defaultmysql databaseDirectory
Change C:\ProgramData\MySQL\MySQL Server 5.1\data Change to D:\MysqlData
1. Create the folder D:\MysqlData
2. Stop the mysql service and change "C:\ProgramData\MySQL Server 5.1\data" Copy all files to D:\MysqlData
3. Find the my.ini file in the mysql installation directory and find:
#Path to the database root #data dir ="C:/ProgramData/MySQL/MySQL Server 5.1/Data/"
Change the value of datadir to: datadir="D:/MysqlData /"
After saving, restart the mySQL service.
Note: The C:\ProgramData directory is a hidden folder, you can uncheck "Don't show hidden files..." in the file options
The above is the detailed content of Detailed introduction to the method of modifying the mysql data directory under Win2008 r2. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This article reviews Windows-based server management tools. It compares free (PowerShell, Windows Admin Center) and commercial options (SCCM, Azure Arc), highlighting their functionality, cost, and complexity. The choice depends on needs, budget, a

This article guides users on opening files downloaded from Tencent Cloud. It addresses common issues like corrupted downloads, incompatible file formats, and software conflicts, offering troubleshooting steps and suggesting contacting Tencent Cloud

Deleting unregistered Tencent Cloud mobile accounts is impossible without verification. The article explains why account deletion requires verification and details how uninstalling the associated app is the most effective workaround to sever the app

This guide details using Tencent Cloud Lightweight Application Servers (LAS). It covers account setup, instance creation (specifying region, configuration, image, security, and storage), and application deployment. Key features include cost-effecti

This article addresses common Windows installation and boot errors. It details troubleshooting steps for issues like corrupted media, hardware problems, driver conflicts, partitioning errors, BIOS settings, and software conflicts. Solutions include

This article reviews free and paid Windows server administration tools. It compares built-in options like Server Manager & PowerShell with commercial solutions such as SolarWinds and Microsoft System Center, emphasizing the trade-offs between co

This article details the key responsibilities and essential skills of a Windows systems administrator. It covers system installation/configuration, monitoring/troubleshooting, security management, backup/recovery, patch management, automation, and u
