Skip to content

Instantly share code, notes, and snippets.

@andrekeher
Last active December 5, 2018 15:42
Show Gist options
  • Save andrekeher/01758ab5ff9be55e81c99e18fdf82f08 to your computer and use it in GitHub Desktop.
Save andrekeher/01758ab5ff9be55e81c99e18fdf82f08 to your computer and use it in GitHub Desktop.
INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_registered, display_name)
VALUES ('USER', MD5('PASS'), 'USER', '[email protected]', NOW(), 'USER');
INSERT INTO wp_usermeta (user_id, meta_key, meta_value)
VALUES ((SELECT MAX(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}');
INSERT INTO wp_usermeta (user_id, meta_key, meta_value)
VALUES ((SELECT MAX(id) FROM wp_users), 'wp_user_level', '10');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment