USA/UK English

How to reset a WordPress site? See the step by step!

.

Some people might look at their WordPress site and think that maybe it’s time to start over from scratch. If this is your situation and you are seriously thinking about resetting your page, know that it is very easy to do this procedure, even if it seems a little complicated at first glance.

A WordPress site owner will often find themselves in a situation where they need to reset pages for performance, design, design, or security reasons. Resetting requires deleting previously made settings and customizations. In this article, we are going to explain how to reset a WordPress site, no matter what your reason is.

Want to find out how you can reset your site and when you need to do this process? proceed!

What does it mean to reset a WordPress site?

Reset means resetting or restarting your WordPress site, or restoring its default settings. Basically, it means that all your themes, settings and plugins will be permanently deleted in order to start over. This can occur when the user intends to renew pages for a client, for example.

There are users who expand their knowledge of WordPress and choose to reset everything by restarting the entire configuration. Other professionals built the site on localhost and may plan to move it to a live server. The reasons are varied, however the reset itself is a pretty straightforward step that can be followed intuitively.

When might it be necessary to reset a WordPress site?

It is important to reset WordPress to default settings if you created the site just to practice your skills. In this case, you may experience dissatisfaction when viewing the settings, notice errors in the brand or problems loading pages. Another situation is when the user needs to redirect the site or perform a complete redesign.

It might be best to reset WordPress if you’ve already built and tested a new site that’s ready to go live. When a company is hacked and the hackers have inserted unwanted code or spam into their theme files, plugin files, pages or posts, it’s a good idea to start building from the ground up.

How to reset a WordPress site?

There are several ways to reset a WordPress site, one of them is manually or through the use of a plugin. These methods will result in pages, posts, settings and files being deleted. The procedure cannot be undone as the reset will completely erase all customizations and settings. See below for more tips to complete this process!

1. Perform SSH access

Access the shared hosting account or server with SSH and connect to MySQL with the following command: mysql -u username -h host database -P port -p. Then enter your database information:

  • host is the hostname or IP address of your database;
  • username is your database username;
  • port is the port MySQL is running on;
  • database is the name of the database.

Then enter that MySQL user’s password and enter the following MySQL command to switch to your database: mysql> use database. Enter the command mysql> show tables to see a list of tables and make a note of the table containing “_users”.

Type mysql> SELECT * FROM table to see the contents of the “users” tables and record the number in the “ID” column of the user to be reset. Assume that table is the name of the user table and use the command mysql> UPDATE table SET user_pass = MD5(‘password’) WHERE ID = id to set your new password.

2. Use cd command

Access your SSH server and website cPanel user using the hosting plan steps, which can be VPS/Dedicated or Shared. Use the cd command to enter the document root of the domain, for example: cd public_html. Replace public_html/my_website with the actual path to your document root directory.

Check that you really are in the correct WordPress environment with the command: wp option get home && wp option get siteurl. To list all users on a site, issue the following command: wp user list. Finally, use wp user update USER –user_pass=NewStrongPassword and reset the user’s password.

3. Do the command “wp site empty – -yes”

Within the control panel of the WordPress site you are going to reset, issue the command: wp site empty. With this, the system will ask you to confirm the WordPress reset. You can ignore this request using wp site empty –yes. For excluding physical files in the uploads folder, type: wp site empty –yes –uploads.

4. Run the command “wp db reset –yes”

Finally, run the following command to reset WordPress: wp db reset –yes. After following these steps, the platform will be completely clean and will allow the user to start the procedure from the beginning, reconfiguring all the details. Remember to make a full backup before proceeding as this will erase all site data.

5. Use the command “wp core install –url=URL_DO_YOUR_SITE –title=”Title of your Site” –admin_user=YOUR_NAME_DE_USUÁRIO –admin_password=YOUR_PASSWORD –admin_email=YOUR_EMAIL”

This last command will allow the user to replace all site, password and user data. Using the above command correctly, you will need to add your page URL to restart the customization. If you wish, you can use the WordPress database to determine the default admin user details.

6. Replace the information

Return to your WordPress site, go to Settings > General. Edit the platform address field and the website address field to have the new address for your page. Click on the Save Changes button and save the changes made. This should not be done before the DNS has propagated.

What precautions are needed when resetting a WordPress site?

The first precaution to be taken is to make a backup of your WordPress site, since when resetting everything will be erased. You can make this copy of the site manually or using a platform plug-in. This measure will offer the option to restore the page after resetting it, in case the user changes their mind or something goes wrong.

Do you understand how to reset a WordPress site? The procedure can be done successfully using a free page reset plugin with just a few clicks. If you prefer, you can manually reset sites for that platform. Follow the tips provided in this content and carry out the process which is a bit complex but will help you understand several fundamentals.

Did you find it interesting? So follow us on social media and enjoy every publication made available!

.

Mostrar mais

Artigos relacionados

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Botão Voltar ao topo