Index of /andrejciho/General/SQL Script Executor

Post Title Posted Description
Back Parent Directory
SQL Script Executor 2009-02-02 21:51

Execute .sql script file by simply pointing a php script to it


I'm in the process of upgrading a site to the latest version of Wordpress. However, the only access I have is the admin Wordpress password and the ftp password. I typically have access to phpmyadmin so that I can make a backup of the database and in case somethings goes bad I can roll back the upgrade.

So I installed a wp-db-backup plugin that will create a database backup for me. However, I don't have a good way to restore from the backup.

I found a script that let's you upload any sql file and have it executed, but that seems like a bad idea from a security standpoint.

So I borrowed from the script linked above and made a simple php script that runs a SQL script defined by a variable. You can download it here.


Leave a Comment
*Required
*Required (Never published)
 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word