Managing Your Database Using phpMyAdmin

Migrating WordPress website is certainly not something that we have to do every day, but it is not significant to know that this is done in three mouse clicks?  We would go on the assumption that you know all install WordPress, create a database, you connect to the database, do an export and import with phpMyAdmin. Here are certain steps to know how to install WordPress?

1 - Backup your data

If you do not frequently back up your WordPress site, you need to know the following steps as well as save your files, the data stored in your database.

 1.1 - Recover WordPress files

Nothing complicated. Arm yourself with your favorite FTP client, that’s our FileZila; login; repatriate all directories necessary for the proper functioning of your site. 

 1.2 - Recover data from Phpmyadmin

  1. Login to cPanel.
  2. Click  phpMyAdmin icon in the Databases section.  This will take you to phpMyAdmin page. 
  3. You can view the list of available databases on the left side.
  4. Check the given below screenshot.


phpmyadmin



save





2 - Transferring your data

 

Now you have downloaded all your data(backup file) on your computer, you should go ahead in reverse process. This time, you transfer your data (sql, zip, files) to the FTP server and choose the Import tab in phpMyAdmin.

 

3 - Small Changes friends

Once you have completed the data transfer to the new server successfully, you may face some obligation to make some small adjustments.

3.1 - I changed database

If you have changed the server, there may be high chances that the password for connecting to MySQL is not correct.  Once you moved the database to the new server, you must edit the config file login details by replacing the old details with the new login details.

3.2 - I have not changed my domain name
In this case, you don’t need to change any further details. Your site will run smoothly without any error.


3.3 - I changed domain name

Just Query this SQL command through PHPmyAdmin:-

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.old-domain.com', 'http://www.new-domain.com');
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

  • 1 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

Related Articles

Fix Failed to Write to Disk | Write Permission Denied Error

Files and Folders Permissions are very essential steps when it comes to hosting your...

How to Change DNS Zones (MX, CNAME, and A records)

SharedWith cPanel 11.34, customers are provided accessibility to make some of these changes from...

How to import your MySQL database

How can I import a database? Firstly, Login to Cpanel Simply, Go to phpMyAdmin Click...

How do I backup / restore / move from one cPanel host to another?

How can I recover my web page with old/previous content?Please contact us through Ticket at...

Internal Server Error help, 500 error

Internal server errors can be due to a few different factors. Please examine the Error Records in...