How to Find & Replace in MySQL

mysql logo resized image

Sometimes, we need to find and replace certain strings or pieces of data in MySQL on the fly, for example if we’ve changed a Top Level domain (TLD) and want to update a bunch of links all in one go. For those times, the following command can be issued: The code from the Gist above …

Read more

AWS EC2 Instance Won’t Stop

If you use a lot – or even just one – EC2 instance on Amazon Web Services (AWS), from time-to-time, you might find that an instance becomes unresponsive, you can’t get in via SSH, and, when in the AWS console, the instance just won’t stop! When this happens, you select “Stop” in the console, and …

Read more

How to Make WordPress Auto-Thumbnails Work

If you’re recently installed WordPress onto a new server (we do this a lot on Amazon EC2 instances of varying sizes) and you notice that your image uploads aren’t auto-thumbnailing (when WordPress “crunches” your images into “thumbnail” “medium” and “large” sizes for use throughout your website) then chances are your server doesn’t have the GD …

Read more

Installing APC on Amazon EC2 Instance

Some time ago, I wrote a short blog post explaining how to go about installing XCache on an Amazon EC2 instance to help with opcode caching. More recently, we’ve begun using APC for similar reasons, with excellent results, including on Amazon EC2 Micro instances, which can be used under their free usage tier to run …

Read more

How to Restart MySQL After Editing innodb Log Size

Sometimes, either because we’ve got a puny amount of RAM available, or because we’ve recently boosted available RAM, we want to allow MySQL a different amount of memory for it’s innodb logs. However, when we change this, restarting MySQLd can cause a hiccup or two. Namely, the MySQL service won’t restart. If this happens, what …

Read more

MySQL Innodb Tables Crashing on AWS EC2 Instance? Is Your Disk Full?

We’ve been asked to troubleshoot Amazon Web Services Elastic Compute Cloud (AWS EC2) instances for a number of reasons. Recently, we took a look at an Amazon EC2 instance which was being used as a MySQL server and the task was to see why several MySQL innodb tables were crashing. The situation had got so …

Read more

WordPress Extensions

We often install the Open source (free, and developed by a community of programmers, rather than one, paid, team) Content Management System (CMS), WordPress. WordPress was originally a blogging platform developed by Matt Mullenweg, but, in its short history, the software, which runs on (also Open source) PHP and MySQL, has developed into far more …

Read more

WordPress – Using MySQL to Update Specific Custom Fields

Some time ago, we told you how to Find & Replace Data using MySQL – today I am going to explain how to use this query to update specific custom fields in WordPress databases, in bulk, on-the-fly, without having to login, open, and edit every single WordPress post you’ve got! Remember, before doing anything to …

Read more