Knowledgebase: Wordpress
How to Create Wordpress Administrator Account using MySql

To create Wordpress administrator account in Wordpress, simply enter the following SQL query in the database.

* Please make sure to change the database name and appropriate values.

 

INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('4', 'webserveradmin', MD5('Temp2016'), 'WebServer Support', 'support@webserver.com.my', 'http://www.webserver.com.my', '2016-07-01 00:00:00', '', '0', 'WebServer');

 

ID: 4
Username: webserveradmin
Password: Temp2016
Nice name: WebServer Support Team
Email: support@webserver.com.my
Website: http://www.webserver.com.my
Your Name: WebServer

 


INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');

 

ID: 4
Role: Administrator

 


INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10');

 

ID: 4


Comments (0)