GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HELP! PHP guys - how do I back up a database???? (https://gfy.com/showthread.php?t=869974)

Antonio 11-18-2008 12:02 AM

HELP! PHP guys - how do I back up a database????
 
Ok, I want to back up my whole database for one site.
I have FTP access but no phpMyAdmin access, no control panel either.
I want these fields "checked" when expoerting the database:

http://www.6dicksunder.com/hl/db.jpg

I have the dabase name, username, password
I'm guessing this can be done with PHP?

Pseudo PHP code:
connect to the database
export the whole database to a sql file
done


???

Thanks in advance

Sam Granger 11-18-2008 12:04 AM

http://phpminiadmin.sourceforge.net/

Try that - 1 php file, works really good. :thumbsup

Sort of phpmyadmin but lightweight.

2012 11-18-2008 12:04 AM

Easy, I don't have the code in front of me but easy to google ... just connect and dump to a file ?

Probably better ways but that works ...

woj 11-18-2008 12:06 AM

install your own phpmyadmin, problem solved...

SmokeyTheBear 11-18-2008 12:06 AM

$query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName";

2012 11-18-2008 12:10 AM

you might have a problem with write access ... maybe just email it

Antonio 11-18-2008 12:18 AM

Quote:

Originally Posted by Sam Granger (Post 15070829)
http://phpminiadmin.sourceforge.net/

Try that - 1 php file, works really good. :thumbsup

Sort of phpmyadmin but lightweight.

downloaded! thanks!!!!!!!!!


All times are GMT -7. The time now is 06:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123