Why change the default username?

You may have never thought about it, but changing your username is one of several ways to protect your site from hackers. By default, WordPress is set to log in as “admin”. However, I recommend that you change this name. If you keep the name admin, hackers will only need to guess your password. And that is not as unmanageable an obstacle for them as it might seem. They will keep trying different passwords until they finally guess it right, yours. If you change your username, it will be a little harder for them to get to your site.

In this post, I will show you step by step how to change this name. This change is most often made in the database. What you need to know first is the name of your database. Before you make a change to the database, you must know in which part of the database you need to make the change. You can find out by looking at the core WordPress files and wp-config.php. In the cPanel in the “Files” section, select the “File Manager” button. Next, in “File Manager Directory Selection”, select “Web Root” or “Document Root” from the drop-down list. Next, select the wp-config.php file, click the “Edit” button at the top of the page, and look for code similar to the code shown below.

a
The name of the database is given in the third line, where it says “your_db”. You now know the name of the database and can change it in the table. In the Panel, click on “phpMyAdmin” under “database” on the home page. On the left, select your database from the list and look for the “wp-useres” table. b
Click on the wp_users table and find your username in the list.c
If you have multiple users, the list may be longer. Click “edit” in the table options. Enter your new username everywhere and exactly as shown in the picture.

d

Also change the username in the “display_name” section. If you’ve changed everything you wanted, be sure to save those changes.

e
Once you’ve saved all the necessary changes, you can take full advantage of the new username. However, if you have multiple usernames, you’ll need to take a few more steps to complete. Return to the list database, find the table named “wp-sitemeta”, click on the table options and look for “meta_key” in the column and “site_admins” in the row.

f
Click on “edit” on the left side of the line and change the user values in the “meta_value” field.

g
All you have to do is change the “username” and the value of its number of characters. According to the example above, you will change the admin and replace the number 5 with your own, depending on the number of letters your name contains.
For example, if you want to change your username to “klbkovlny28”, the code will look like: 1: {i: 0; s: 11: “klbkovlny28”;}. All you have to do is confirm your changes by clicking on GO.

You have successfully completed a database change. Along with this change, you caused the hacker a problem. In addition to changes in the database, there is another, very simple way to change your username. You simply create a new user and assign it an administrative function. You will remove the original admin. However, some modules require additional permission settings that cannot be set immediately when creating a new account. Therefore, we recommend making the change in the database instead.

WordPress Návod v PDF

LEAVE A REPLY

Please enter your comment!
Please enter your name here