Hi,
Database recovery attempts when Wampserver is not started are more or less doomed to failure.
However, if the wampmysql service (or wampmysqld64 for 64-bit versions) exists, you can try - without much conviction - the following procedure.
You must first check that the MySQL service exists, to do this, open the service manager (Start, Run, services.msc) and check that the service "wampmysqld" (for 32 bit versions of MySQL) or "wampmysqld64" (For 64 bit versions of MySQL) exists. Make a note of the name found.
Open a command window - as administrator (the term administrator must appear in the window title) and move to the bin folder of the mysql version containing your database, for example:
J:\wamp\bin\mysql\mysql5.7.21\bin>
---- If the service does not exist we will try to create it by the command:
(Replace wampmysqld by wampmysqld64 if 64 bit version of mysql)
mysqld.exe --install-manual wampmysqld
The answer must be:
J:\wamp\bin\mysql\mysql5.7.21\bin>mysqld.exe --install-manual wampmysqld
Service successfully installed.
---- End of installation of service
In the command windows type (For 64 bit version, use wampmysqld64)
net start wampmysqld
The answer has to be like:
The wampmysqld service starts.
The wampmysqld service has started.
To verify that mysql is started, type:
J:\wamp\bin\mysql\mysql5.7.21\bin>mysqld.exe -V
The answer has to be like:
mysqld.exe Ver 5.7.21 for Win32 on AMD64 (MySQL Community Server (GPL))
If you do not get a response containing the MySQL version number, it is not worth continuing, it indicates that MySQL is not started.
Type:
(If there is no password for root, do --password= )
mysqldump.exe --user=root --password=mypassword databasename > myfile.sql
The data base is dumped into myfile.sql file.
You only have to import this file, for example with PhpMyAdmin, to recreate the contents of your database.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons