MySQL Replication Troubleshooting

by Jay Versluis on May 13, 2013

in MySQL

crab-iconSometimes things don’t work out with replication. When I first started experimenting with it I thought this was a “setup and forget about it” kind of job.

Experience has shown though that you have to regularly triple check and see if things may have broken (despite a good and once working setup).

Let’s take a look at what you can do when your Slave isn’t replicating anymore. If you want to know more about how to setup replication, have a look at my previous article in which I explain how this works.

Excellent – let’s take a look!

{ 0 comments }

mysqlThis is a step-by-step guide on how to replicate an existing MySQL server. The server is live and contains data and needs a constant backup companion.

Many tutorials focus on how to setup replication when no data is present on the system. That’s an ideal solution if you’re building a new setup, but in case you’ve got a server that already has data present then here’s how to accomplish the this:

  1. setup your existing MySQL server (with data) as a Master
  2. export all your databases and user accounts
  3. create a slave and import all your data
  4. start replication

I’ve done this several times and always forgot to take some notes – until today. Without further ado, let’s replicate MySQL.

[read full article…]

{ 3 comments }

How to install CentOS 6 on a Samsung NC10

by Jay Versluis on May 9, 2013

in Linux

NC10Today was a rather exciting day for me: I’ve successfully turned my aging Samsung NC10 Netbook into an internal server in our office.

I bought the little guy in 2009 and he’s been my trusty companion on many jobs before I got an iPad. He still works fine, even though Windows XP was getting weird of late – and admittedly I hadn’t even turned him on in over 8 months.

Now my trusty pal is running CentOS 6.4 while sitting quietly in a corner next to the modem, serving as an internal Linux server. This is great for testing and automated backups – and in the same spirit as playing with a Raspberry Pi (in a much neater battery powered package).

Refreshing the NC10 wasn’t a picnic though, and some of the steps are rather involved. Here are my notes, in case I either have to do it again or you want to follow along.

[read full article…]

{ 0 comments }

SketchBookPro-LogoThe Mac version of Autodesk’s SketchBook Pro 6 works well on small screen – but since real estate is limited, there is a way to switch the app to Full Screen Mode.

Rather than the double-arrow in the top right corner though, you’ll have to use the shortcut

OPTION+CTRL+J

Don’t ask me why, it’s not very well documented for such an intuitive app. And since I keep forgetting how to do this, here it is in writing.

Thanks to Eric from Autodesk for this tip (discussion)

{ 0 comments }

How to add a User Account on CentOS

On both CentOS and Red Hat Linux systems you can easily create new user accounts with their own home directories. Here’s how you do this from the command line. I’m assuming you’re logged in as root, and the new user we’d like to create is called “testuser”: useradd testuser Let’s give our testuser a password [...]

Read the full article →

How to increase the number of simultaneous IMAP connections in Plesk

By default Plesk sets up the IMAP Email Service on your server so that four simultaneous connections can be made from the same IP address in the same timeframe. This is to protect your servers from too many connections. This however isn’t cutting it if you have a small office full of people on the [...]

Read the full article →

How to style the Add Media button in P2

I’ve noticed that the Add Media button in P2 version 1.4.2 is a bit too low when you write a Blog Post. The button usually sits neatly above the status box, however it cuts into the top of the box due to the additional text field for the blog post – like so: It’s not [...]

Read the full article →

How to bulk delete posts in WordPress with MySQL

Usually deleting several posts at once is not a problem thanks to the bulk delete options in WordPress. Those queries however rely on a single delete each, initiated by PHP loop. That’s fine if you’re deleting up to about 100 posts at a time. But it’s not when you have thousands of posts to delete. [...]

Read the full article →

What is the default MySQL password for root in MAMP?

It’s root. This is not the same on a vanilla MySQL install where the root user is not secured by a password by default – however under MAMP it is. So on a fresh MySQL install the credentials are User: root Password: (nothing) Under MAMP (and presumably MAMP Pro) they are User: root Password: root [...]

Read the full article →

Say hello to The WP Guru Podcast

This week I finally had a chance to prepare The WP Guru Podcast for you! Get all my past, present and future screencasts delivered for free and automatically. I’ve been planning this for years, and even though relatively simple to setup it took a bit of organisational efforts behind the scenes to make it happen. [...]

Read the full article →

How to update jQuery Mobile in Dreamweaver CS6

Since the release of Adobe’s Dreamweaver CS6 the jQuery and jQuery Mobile libraries have been updated. This means that when you create a new Mobile Starter page, you’ll get outdated libraries by default. With a bit of hacking we can change this to the most current version though. Let me show you how it worked [...]

Read the full article →

How to restart Plesk on CentOS / RHEL / Linux

I had always assumed that to restart Plesk, all that was necessary was the following command: service psa restart However, since Plesk is in charge of a multitude of services that’s not enough. Instead, we should be using service psa stopall service psa start Or if the service command isn’t working for you, you can [...]

Read the full article →

How to use Xcode with a remote Git server

Imagine you’ve created a project in Xcode with a local Git repository. Now you’d like to put this online so that others can collaborate with you. How do you do that? This has been puzzling me for a while, and there doesn’t seem to be a clear documentation on this subject – so I’ve decided [...]

Read the full article →

How to install Git on CentOS

Git is a superb version control system that’s tightly integrated into Apple’s Xcode. To collaborate with some coding buddies of mine we wanted to setup a central remote storage on my Plesk server so we could all contribute to the code. Since we did not want to share our code with the public we wanted [...]

Read the full article →