CAll Us: +91 88 00 563434   Login

Create New Admin Account in WordPress via MySQL

You are here:
< All Topics

On this tutorial, we will talk about create a brand new admin account in WordPress by way of MySQL.

1) Login to your cPanel account.

2) Choose the icon ‘phpMyAdmin’ underneath the ‘Databases’ part.

Admin Account

3) A brand new window will open and right here you possibly can see the listing of databases of your accounts on the left-hand aspect bar. Then click on on the database in your specific WordPress set up.

Admin Account

4) After the database particulars are loaded, it’s worthwhile to click on on the tab ‘SQL’.

Admin Account

5) After clicking on SQL, a SQL editor will seem. Add the next code to the SQL editor. Right here the code creates a brand new admin account named ‘newadmin’ with the password ‘admin123’. It’s possible you’ll change any of the content material to suit your necessities.

INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES (‘newadmin’, MD5(‘admin123’), ‘firstname lastname’, ’electronic mail@instance.com’, ‘0’);

INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Choose max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:s:13:”administrator”;s:1:”1″;’);

INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Choose max(id) FROM wp_users), ‘wp_user_level’, ’10’);

6) Then click on on the button ‘Go’.

Admin Account

This could merely refresh the display screen and you need to see the message ‘1 row affected’ after every of the three SQL statements. This implies the insertion ran easily. From right here, go to your WordPress admin login and use the brand new admin login info. It’s best to see admin interface with none challenge.

Should you want any additional assist please contact our assist division.

Knowledge Base