Hi forda21,
That doesn’t sound good! Maybe you may want to add a new administrator account. Then you can login and change your one back to being an administrator.
Hopefully you have some MySQL client experiance or access to phpMyAdmin.
If so then you can execute the below queries.
INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_url, user_status, display_name) VALUES (‘****NEWUSERNAME****’, MD5(‘****password****’), ‘friendly-name’, ‘[email protected]’, ‘http://example.com’, ‘0’, ‘Your Name’);
SELECT LAST_INSERT_ID() INTO @userid;
INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @userid, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’), (NULL, @userid, ‘wp_user_level’, ’10’);
All you need to do is change the values that are encapsulated by ‘****’.
I hope this helps, if not feel free to drop me a message and maybe I can assist you further.
Cheers
Thread Starter
Angela
(@forda21)
Humm…it says I have an error in the code
Strange… I just that snippet all the time.
Paste the code you are running and the error
Thread Starter
Angela
(@forda21)
Here is the error I recieved: #1146 – Table ‘thefourworldsseries_com.wp_users’ doesn’t exist
Thread Starter
Angela
(@forda21)
20150603_103751__wp_3w4c89_commentmeta
20150603_103751__wp_3w4c89_comments
20150603_103751__wp_3w4c89_links
20150603_103751__wp_3w4c89_options
20150603_103751__wp_3w4c89_postmeta
20150603_103751__wp_3w4c89_posts
20150603_103751__wp_3w4c89_term_relationships
20150603_103751__wp_3w4c89_term_taxonomy
20150603_103751__wp_3w4c89_terms
20150603_103751__wp_3w4c89_usermeta
20150603_103751__wp_3w4c89_users
20150603_103751__wp_3w4c89_woocommerce_attribute_t…
20150603_103751__wp_3w4c89_woocommerce_downloadabl…
20150603_103751__wp_3w4c89_woocommerce_order_itemm…
20150603_103751__wp_3w4c89_woocommerce_order_items
20150603_103751__wp_3w4c89_woocommerce_tax_rate_lo…
20150603_103751__wp_3w4c89_woocommerce_tax_rates
20150603_103751__wp_3w4c89_woocommerce_termmeta
wp_3w4c89_commentmeta
wp_3w4c89_comments
wp_3w4c89_links
wp_3w4c89_options
wp_3w4c89_postmeta
wp_3w4c89_posts
wp_3w4c89_term_relationships
wp_3w4c89_term_taxonomy
wp_3w4c89_terms
wp_3w4c89_usermeta
wp_3w4c89_users
wp_3w4c89_woocommerce_attribute_taxonomies
wp_3w4c89_woocommerce_downloadable_product_permiss…
wp_3w4c89_woocommerce_order_itemmeta
wp_3w4c89_woocommerce_order_items
wp_3w4c89_woocommerce_tax_rate_locations
wp_3w4c89_woocommerce_tax_rates
wp_3w4c89_woocommerce_termmeta
Great.
In that case, run the below:
INSERT INTO wp_3w4c89_users (user_login, user_pass, user_nicename, user_email, user_url, user_status, display_name) VALUES ('****NEWUSERNAME****', MD5('****password****'), 'friendly-name', '[email protected]', 'http://example.com', '0', 'Your Name');
SELECT LAST_INSERT_ID() INTO @userid;
INSERT INTO wp_3w4c89_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @userid, 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'), (NULL, @userid, 'wp_user_level', '10');
Thread Starter
Angela
(@forda21)
Okay, the new user worked by when I tried to login to WP-Admin it said “you do not have sufficient privilages to access this page”