What is the exact location of MySQL database tables in XAMPP folder?

前端 未结 10 1221
有刺的猬
有刺的猬 2020-12-08 10:04

I have a MySQL database and I want to know the exact location where this data actually stored in the XAMPP folder, I went to this file location to try to get the information

相关标签:
10条回答
  • 2020-12-08 10:43

    Well, here's what worked for me:
    Copy and paste the entire data folder, not just the content.
    I use xampp, and the path to the data is xampp/mysql/data.

    Goodluck!

    0 讨论(0)
  • 2020-12-08 10:48

    For Mac, your database files are located at:

    /Applications/XAMPP/xamppfiles/var/mysql
    

    You might need admin permissions to access or delete your files.

    0 讨论(0)
  • 2020-12-08 10:51

    I think the matter is your tables engine. I guess you are using InnoDB for your table. So you can not copy files easily to make a copy.
    Take a look at these links:
    http://dev.mysql.com/doc/refman/5.0/en/innodb-backup.html
    http://dev.mysql.com/doc/refman/5.0/en/innodb-migration.html

    Also I recommend you to use something like phpMyAdmin for creating your backup file and then restore the backup file on the next machine using the same IDE.

    0 讨论(0)
  • 2020-12-08 10:53

    The exact location is stored in "my.ini" which exists under main mysql installation directory. In my.ini file, look for 'datadir'. This parameter points the data folder.

    0 讨论(0)
提交回复
热议问题