Jasinski Technical Wiki


Home Page
All Pages

Quick Search
Advanced Search »

Contributor Links

Create a new Page
File Management
Your Profile

Other Wiki Sections



Page History: Migrating a WordPress Site to Amazon RDS

Compare Page Revisions

« Older Revision - Back to Page History - Newer Revision »

Page Revision: Thu, Aug 11, 2016, 1:24 PM


Given a typical Wordpress installation i.e., with MySQL running on the local machine this article will outline the steps to migrating the MySQL instance to Amazon RDS.


1. Launch an RDS instance

2. Ensure security group rules on the RDS instance allow inbound traffic from the web server on the MySQL port (typically 3306).

3. Create a "backup" of the legacy database.

On the Linux instance
mysqldump --opt -u root -p database > database_YYYYMMDD_HHMM.sql

4. Determine the Apache root folder.

grep -i 'DocumentRoot' /etc/httpd/conf/httpd.conf

5. Connect to the RDS instance as the administrative user and create a database for WordPress.

6. Run the MySQL dump file against the RDS instance.


ScrewTurn Wiki version Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2023, Patrick Jasinski.