Legacy


  1. Home
  2. Support
  3. Legacy
  4. Databases
  5. Switching MySQL database servers
Click here for full details

Switching MySQL database servers

In this example we will look at how to move a MySQL database from our Sheffield cluster to the Derby cluster.

You can find full details about Pipe Ten database services including the hostnames on our database support page. For this particular example we will be using mysql.pipeten.co.uk for Sheffield and dmysql.pipeten.co.uk for Derby shared database servers.

Steps to take:

  1. Backup your database data and users
  2. Delete your database users & Database
  3. Turn the database service Off and On
  4. Create your database and users
  5. Restore your database data
  6. Update your websites connection scripts

Backup your database data and users

  1. Navigate to phpMyAdmin Sheffield or phpMyAdmin Derby and log in to the relevant database.
    For information on what MySQL server you are on, please see here.
  2. Select the relevant database from the left hand side.
  3. Select the Export tab at the top of the screen.
  4. Select the Custom Radio button and set the output as Save output to a file. Leave everything else as default and click Go at the bottom of the page.

Delete your database users & Database

Before Deleting, please make not of any databases, users, and passwords.

  1. Navigate to Databases > MySQL > MySQL DBs.
  2. Select the database that you wish to delete.
  3. Select the Delete Icon in the Database Users section.
  4. To ensure that the MySQL service can be disabled, click the Add new user to this database.
  5. If any users are present within the Existing User section, assign them to the database.
  6. Delete any newly added database users.
  7. Press the Delete Icon in the Database Name section.
  8. Agree to any applicable refunds.

Turn the database service Off and On

  1. Navigate to Databases > MySQL > MySQL DB Wizard.
  2. Select the Disable icon.
  3. Select the Enable icon.

Create your database and users

  1. Navigate to Databases > MySQL > MySQL DB Wizard
  2. Within the Name of database section set the name of the database you want to re-add. Click Next.

  3. Agree to any charges if there are any.
  4. Within the form create the relevant user that was deleted earlier.

Restore your database data

  1. Navigate to phpMyAdmin Sheffield or phpMyAdmin Derby and log in to the relevant database.
    For information on what MySQL server you are on, please see here.
  2. Select the relevant database from the left hand side.
  3. Select the import tab from the top of the screen.
  4. Select the database backup file from the Choose File section and click Go.

Update your websites connection scripts

As the database server has changed, you will need to edit any connection strings you have within your website scripts.
Some notable files include:

  • WordPress – wp-config.php
  • Joomla! – configuration.php
  • Drupal – settings.php
  • MODx – config.inc.php
  • Moodle – config.php
Click here for full details

Classification: Public
Last saved: 2021/05/14 at 09:52 by Jamie