PrefaceToday I installed MySQL and found that the database storage was installed on the C drive by default. Since the C drive has limited space, I wanted to move it to another drive. Here are my steps 1. Start 2. Enter your password
3. Enter the command to query where the data is stored show global variables like "%datadir%"; 4. Move the Data file under C:\ProgramData\MySQL\MySQL Server 8.0 to the desired location 5. Modify the my.ini file under C:\ProgramData\MySQL\MySQL Server 8.0 Find datadir, add # to the original address and comment it out, then write the address of the data file you moved 6. Open Computer Management, find the MySQL service, and restart it 7. Check the data storage location again show global variables like "%datadir%"; If the data position after the move is displayed, it means it is successful. This is the end of this article about moving MySQL database to another disk under Windows. For more relevant MySQL database movement content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Mobile web screen adaptation (rem)
>>: CSS to achieve fast and cool shaking animation effect
Table of contents 1. Environmental Preparation 2....
Master-slave synchronization, also called master-...
Friends who have some basic knowledge of SQL must...
In the previous article, I introduced how to solv...
A database index is a data structure whose purpos...
Table of contents 1. DHCP Service (Dynamic Host C...
Preface Recently, when I was building a project, ...
Copy code The code is as follows: <style type=...
This article shares the specific code of the WeCh...
step: 1. Create a new docker-compose.yml file in ...
1. Compatibility As shown below: The compatibilit...
Solution to forgetting MySQL password: [root@loca...
This article example shares the specific code of ...
Table of contents 1. Location Object 1. URL 2. Pr...
Overview The fundamental difference between async...