Where does WAMP server store database files

My hard-drive has encountered some problems and I am unable to boot Windows with it.

I am able to view the drive’s contents by connecting it to another PC as an external drive.

On the culprit drive I was running a local WAMP server for dev purposes and I’m looking to save the mySQL databases from it.

I can see my wamp directory at E:wamp. Is it possible to start up the server from here so as to use phpmyadmin to perform a mysqldump? If not what are my options to recover the DB-

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

On my system, they are in C:Program Files (x86)WampServerbinmysqlmysql5.1.53data. So in yours they would be in E:wampbinmysqlmysql-versiondata.

You can start mysql locally from E:wampbinmysqlmysql-versionbin, where all the executables are. Be aware that the configuration file you want to use is E:wampbinmysqlmysql-versionmy.ini.

You can also simply copy all the subdirectories to another server. I’m no MySql expert, but that should let the other server use your databases without problem.

Method 2

I needed to re-install Wamp and I recovered my databases by copying the data directory in wampbinmysqlmysql-version from a backup, phpMyAdmin picked up the databases and tables.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x