Soldato
- Joined
- 24 Nov 2002
- Posts
- 16,378
- Location
- 38.744281°N 104.846806°W
Is there an easy way to do this?
I want, quite literally, to be able to backup an entire database to an .sql/.gz file with a click. It is for a frontend, so can't use phpmyadmin (unfortunately).
I haven't been able to get any googled methods to work. As a note, "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname" won't work apparently as I'm debugging on windows, not *nix (irony, I know!).
Also, I'd like to be able to import this file easily (mysql < poo.sql) through a similar frontend process (thus blank/delete db beforehand).
Any ideas?
I want, quite literally, to be able to backup an entire database to an .sql/.gz file with a click. It is for a frontend, so can't use phpmyadmin (unfortunately).
I haven't been able to get any googled methods to work. As a note, "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname" won't work apparently as I'm debugging on windows, not *nix (irony, I know!).
Also, I'd like to be able to import this file easily (mysql < poo.sql) through a similar frontend process (thus blank/delete db beforehand).
Any ideas?