If the loading times on your site are terrible, you're getting timeout errors, the admin is sluggish and the overall experience of using your WordPress site is in decline, it's time to get on the front-foot and fix your site. In this post, we look at the causes and what you can do.
When most people start doing WordPress development, their workflow involves downloading a file from a theme or plugin via FTP, editing it, uploading it via FTP, refreshing the page, figuring out went wrong and then starting the whole process over again. This strategy, know as “cowboy coding” is not only inefficient, but dangerous.
Once you’ve put your cowboy days behind you, it will be obvious that no serious WordPress development can ever be done that way. The alternative takes a little work getting setup and used to, but the pay-off is more than worth it.
There are many situations where you may need to copy your WordPress database. The most common scenario would be to set up a development site in order to test new themes or features. In the past you may have exported a copy and then re-imported that to a new blank database. If you want to copy your database onto the same server, then this is probably the easiest way.
This quick tip is based on a phpMyAdmin operations feature, so it won’t apply to you if your host is using something else for managing databases.
WordPress is stable software and operates without issues most of the time. However, at times, things may go a little haywire, and your WP website can refuse to function normally.
Have you ever encountered a white screen after adding some new themes or plugins? Maybe you were just updating your WordPress website and that update now refuses to finish, and your website is in eternal maintenance mode? What about internal server and database connection errors?
WordPress makes it easy to export content from one site and then import it into another. This is done through the import/export setting, which you can find in the TOOLS menu in your WordPress admin dashboard.
But before you can import or export all that fancy data, you need to create those new posts and pages. Designers and developers know what a chore it can be to constantly create content just for the purposes of testing the site before it goes live. The developers or WordPress know this too, which is why they created the Theme Unit Test.
Want to change the name of your WordPress database?
If you’ve got more than one WordPress install on your server, of if you’re anything like me, you’d rather not go to your PHP My Admin and see database names that look like this:
It gets a bit tricky to keep track of things when you can’t tell which database belongs to which site. Not to mention that if you make a modification to the wrong database, you could end up having to back trac and end up creating a problem on your live site that takes you some time to patch up.
If you’ve ever had the need to find the name of your WordPress database, then there’s an easy way to do that – simply look for it in your wp-config.php file located in the root folder of your WordPress install.
Accessing Your WP-Config.php File
If you are doing something where you need the name of your database, then I’m assuming you have access to your server.
Simply go to the main folder of your WordPress install and locate the file called wp-config.php.
Open that file by clicking “View” or “Edit” or however your system lets you see the file.
The Famous WordPress 5-Minute Install:
“With our famous 5-minute installation, setting up WordPress for the first time is simple.”
This is the second article in the Dissecting the WordPress 5 Minute Install article series. The first segment of the series can be read by visiting:
WordPress 5 Minute Install: Before You Begin
I am a lunch reader. Always have been. Give me a half-hour to forty-five minutes and I will break out a newspaper and start catching up on yesterday’s happenings. I recently decided to make my lunchtime habit a bit more productive, though, by reading a chapter a day (give or take, sometimes I do like a lunchtime nap) from PHP & MySQL : The Missing Manual.
The Missing Manual
The All Settings plugin adds a sub-menu to your Setting menu that lets you see ALL the different setting available to you on your site. This plugin gives you access to the settings in your database from your backend.
While this may not be for your average user, if you’re interested in seeing all your settings in an easily-accessible place, then it does make it more convenient.
Photo: hand choosing one of the options from BigStock