How to view and change where MySQL database files are stored

Source: Internet
Author: User

The MySQL database data file is stored by default: C:\Documents and Settings\All Users\Application Data\mysql\mysql Server 5.1\datal, where can I see it?

Of course, from the MySQL configuration file, find the MySQL installation directory, find My.ini, and then through the search to find datadir=, the following is the MySQL database file storage location, to modify is very simple, the first to change the address of the back to their desired address, Then the original storage database files in the location of all the contents are copied to the new address, and then restart the database service on the line.

PS: A quick and easy way to restart MySQL database:

In the run, enter CMD to open a command prompt window, and then enter the command:

net stop MySQL//stop MySQL Service
net start MySQL//Startup

How to view and change where MySQL database files are stored

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.