MySQL database installed successfully, but found in the MySQL installation directory of the data directory does not have a new database? So how do you find the real data directory? Below the 3A network small money to teach you today how to find the real data directory and migrated out. (Welcome you crossing more to communicate with younger brother, the younger brother Buckle: Qi One II three of the 0 II)
Find Method:
1. Method One: Find the Mysql.ini file
Search DataDir keyword, find original path configuration and Basedir inconsistency
Datadir= "C:/Documents and Settings/all users/application data/mysql/mysql Server 5.5/data/"
2. Method two: SQL statement
There is a statement to find:
Show variables like ' DataDir '
The original is really not under the installation directory, unexpectedly in:
C:\Documents and Settings\All Users\Application Data\mysql\mysql Server 5.5\data directory below.
Find the real date directory, we will migrate here.
Migration method:
1. Stop the MySQL service first;
2. Copy the previous data directory to the target data folder and overwrite it;
3. Restart the MySQL service.
MYSQL Data Directory Lookup and how to migrate