' ; ?>

Hosting365

How to Duplicate WordPress Database Using phpMyAdmin

How one can Duplicate WordPress Database Utilizing phpMyAdmin


Are you questioning duplicate your WordPress database utilizing phpMyAdmin?

Whether or not you wish to arrange an online improvement setting or switch your web site to a brand new host, you have to to discover ways to duplicate your WordPress database. In case you are a newbie, the best approach to do that is with phpMyAdmin, which is an online utility for managing databases.

On this information, we are going to stroll you thru the step-by-step technique of duplicating your WordPress database utilizing phpMyAdmin.

Professional Tip: On the lookout for a straightforward option to duplicate your whole web site, together with its database, plugins, themes, content material, and information? Simply take a look at our information on clone a WordPress web site with the Duplicator plugin.

Why Ought to You Use phpMyAdmin to Duplicate WordPress Database?

phpMyAdmin is an online utility that helps web site homeowners handle their databases.

Basically, WordPress shops all of your web site content material in a database. If you happen to use a WordPress internet hosting service, then your knowledge is probably saved and arranged in a MySQL database.

The factor is, to work together with MySQL, you’ll usually should be aware of command-line instruments, which could be tough in case you are a newbie.

That is the place phpMyAdmin is available in. It has a user-friendly interface that allows you to do numerous database-related duties with out having to put in writing advanced instructions, corresponding to duplicating your WordPress database. Apart from that, you should utilize it to:

With that in thoughts, let’s check out duplicate a WordPress database utilizing phpMyAdmin. We are going to cowl completely different strategies, and you should utilize the hyperlinks under to rapidly bounce to every one:

Technique 1: Cloning Your WordPress Database With phpMyAdmin

This technique is appropriate if you wish to manually create a backup or arrange a staging setting for testing updates and modifications.

First, that you must open your WordPress internet hosting management panel. In our tutorial, we’re working with Bluehost, which makes use of cPanel for its internet hosting account administration. Your management panel might look barely completely different from our screenshots, however the steps might be comparable.

As soon as you’re logged in to cPanel, merely discover the phpMyAdmin icon. It’s normally contained in the ‘Databases’ part.

Selecting phpMyAdmin on cPanel

Now, you’re inside your website hosting’s phpMyAdmin. Right here, simply click on the ‘Databases’ tab on the high and choose your WordPress database from the checklist of databases.

In case you are unsure what your database title is, it’s the title you enter once you first put in WordPress. You may also discover it in your wp-config.php file for those who neglect.

Selecting a database on phpMyAdmin

Subsequent, you will notice an inventory of your WordPress database tables.

On this web page, simply click on on the ‘Operations’ tab from the highest menu.

Selecting the Operations tab on phpMyAdmin

That is the place you’ll duplicate your database. Go forward and scroll all the way down to a bit referred to as ‘Copy database to.’

Within the empty area, merely write the brand new database title. Then, be sure that the ‘Construction and knowledge’ field is checked. This feature will copy each the construction and knowledge of the database.

Moreover, the ‘CREATE DATABASE earlier than copying’ possibility must be ticked. It will robotically create a brand new database the place the duplicated knowledge might be positioned.

The remainder of the settings could be left as is. All that you must do subsequent is click on ‘Go’ on the backside.

The 'Copy database to' section on phpMyAdmin

And that’s it! Your database has been efficiently cloned.

After this, you may navigate to your newly duplicated database from the left panel.

Navigating to a newly duplicated database on phpMyAdmin

Technique 2: Exporting and Importing WordPress Database With phpMyAdmin

This second technique is greatest in case your internet hosting firm doesn’t permit customers to create databases immediately from phpMyAdmin. This can be the case in case you are utilizing shared internet hosting companies the place sure privileges are restricted for safety causes.

On this scenario, chances are you’ll not have the ability to see the ‘Copy database to’ part within the ‘Operations’ tab. To duplicate your database, you should utilize the export technique as a substitute.

Basically, you’ll export your database SQL file, arrange a brand new database, after which import that database into the brand new setup.

Step one is to go to phpMyAdmin and choose your WordPress database like we did within the earlier technique. Then, within the high menu, merely click on the ‘Export’ button.

Right here, that you must choose ‘Customized – show all attainable choices’ within the ‘Export technique’ part.

Opening the 'Export' tab on phpMyAdmin and selecting the Custom option

As soon as finished, simply scroll to the Output part and select the ‘Save output to a file’ possibility. It will guarantee that your database is exported as an SQL file.

For the remainder of the settings, you may go away them as they’re.

Configuring the phpMyAdmin Export Output settings

Now, all you must do is scroll all the way down to the underside and click on ‘Export.’

Your browser will now obtain the WordPress database as an .sql file.

Clicking the Export button on phpMyAdmin

Subsequent, that you must create a brand new database the place you may import this file to.

Go forward and open your internet hosting management panel and click on on ‘MySQL Databases.’

Opening the MySQL Databases page on cPanel

On this web page, that you must fill out your new database title. In our instance, we used _copy after the unique database title to distinguish the previous title from the newly duplicated one.

After that, simply click on the ‘Create Database’ button.

Creating a new MySQL Database on cPanel

Now that we’ve created a brand new database, let’s assign it to a MySQL person.

Go forward and scroll down the ‘Add Person to Database’ part and choose a MySQL username from the dropdown menu. Be sure to decide on the brand new database you’ve simply created within the ‘Database’ area.

As soon as finished, click on ‘Add.’

Adding a new user to the MySQL Database on cPanel

You’ll now be redirected to the ‘Handle Person Privileges’ web page.

Merely examine the ‘ALL PRIVILEGES’ possibility if you wish to have whole management over your database.

Checking the All Privileges option when adding a new MySQL user on cPanel

Then, go all the way in which all the way down to the underside of the web page and click on ‘Make Modifications.’

Your newly created database is now prepared.

Clicking the 'Make Changes' button to set the privileges of a new MySQL user on phpMyAdmin

Let’s go forward and open phpMyAdmin once more and choose the database you simply created in cPanel.

As soon as inside, you’ll see that the database is empty with out tables like this:

No tables found in database message on phpMyAdmin

To proceed, merely go to the ‘Import’ web page from the highest menu.

Right here, click on on the ‘Select File’ button to pick the .sql file you downloaded earlier.

Choosing an SQL file to import in phpMyAdmin

As soon as completed, scroll all the way down to the underside and click on the ‘Import’ button.

phpMyAdmin will now add the file out of your pc and import your database.

Clicking the Import button on phpMyAdmin

And that’s all! You’ve gotten efficiently imported your duplicated database.

Bonus: Optimize Your WordPress Database for Higher Efficiency

Managing the behind-the-scenes a part of your WordPress web site is simply as vital as the way it seems on the surface. The way you deal with your database impacts how briskly your web site hundreds, how safe it’s, and the way simply folks can use it.

In case your database is cluttered with pointless knowledge, it could possibly decelerate your web site and make it weak to safety dangers. Repeatedly optimizing your database can stop this from occurring and make your web site extra dependable.

For extra details about database administration, you may see our newbie’s information on managing a WordPress database with phpMyAdmin and our article on optimize your WordPress database with one click on.

We hope this text has helped you discover ways to duplicate a WordPress database utilizing phpMyAdmin. You may additionally wish to see our knowledgeable decide of the perfect WordPress database administration plugins and our tutorial on repair the establishing a database connection error in WordPress.

If you happen to preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Fb.



Supply hyperlink

managed wordpress hosting

댓글 달기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

WP Twitter Auto Publish Powered By : XYZScripts.com
AI Chatbot Avatar