Sometimes, when moving or installing WordPress blogs, you’ll have a need for some simple scripts to help do simple things. I found a couple of those that helped me out, and I thought I’d share them with you!
Easily install WordPress
This first one I shared on my newsletter a couple of weeks back: EasyWP Installer is a script that helps you quickly install a WordPress if the only thing you have is FTP access. What it does?
It downloads all the WordPress files for you, so you only have to upload this 8kb file, instead of uploading the entire WordPress directory! Especially on somewhat slower connections, this can be a huge timesaver.
Easily backup your database
For the same reason, when you have no other access to your database than through localhost, you’ll want to dump it through a simple script instead of having to install something like phpMySQLadmin. For this purpose, Huang Kai developed a script aptly called mysqldump. In this script, you’d have to enter db name, username, host etc.
I have adapted his script. If you upload it to a WordPress directory, it will auto load the values from the wp-config directory, and allow you an easy way of dumping the database to a MySQL file. Download my version of the script here.
Resetting your administrator password
Something went wrong in your install? Or you lost the admin password to your blog in some other way? Use this emergency script to retrieve it, change it, or even add a new user to the database!