mysql数据库文件实际驻留在哪里? [英] Where does the mysql database files actually reside?

查看:183
本文介绍了mysql数据库文件实际驻留在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是好奇,因为我开始学习php和mysql,数据库和mysql的其他文件在硬盘驱动器上的位置。我已经在windows xp sp2平台上安装了wamp。

Im just curious as I am beginning to learn php and mysql, as to where the database and other files of mysql reside on the hard drive. I have installed wamp on a windows xp sp2 platform.

推荐答案

通常在WAMP安装的 / mysql / data

Usually in the /mysql/data directory of your WAMP installation. You'll recognize the location because every database has a folder with the same name there.

您可以使用更改数据目录的位置, datadir 中设置 my.cnf 。它经常移动到其他地方,以确保定期备份的数据。

You can change the location of the data directory using the datadir setting in my.cnf. It is often moved elsewhere to ensure the data there gets backed up regularly.

这篇关于mysql数据库文件实际驻留在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆