| Post Title | Posted | Description |
|---|---|---|
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.
This website is powered by Wordpress
Leave a Comment