I think you have lost your Admin Privileges. Please run following SQL query and login to WP Admin using newly created WP ADMIN.
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', 'demo', MD5('demo'), 'Your Name', '[email protected]', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'Your Name');
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";}');
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10');
New Temporary Admin Details that you can delete later :
Username : demo
Password : demo
Related Posts:
- Can’t update database after wordpress update from 3.8.1 to 4.4.1
- Add search Value to wp_list_table pagination
- Why are no posts showing despite my apparently correct DB restoration?
- Retrieve data from the database to table such as comments in the admin control panel
- Adding prefix to WordPress database tables breaks admin capabilities?
- Is my way to change WordPress server is correct?
- Custom Post Type not showing anything added by code anymore?
- WordPress site migration – locked out of admin area
- WordPress Migration – Issue with admin panel changes
- WordPress URL error for links
- Recover Same WordPress Admin Password
- Database Queries are crashing the server
- How to protect my credentials on my clients website
- phpMyAdmin – Error > Incorrect format parameter?
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Why is my database import losing text widget data?
- Why WordPress choose data serialization over json_encode?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- Reset Post IDs to less than 64bit integer
- how can get database name in wordpress?
- Does WordPress use the InnoDB engine for MySQL by default?
- Best way to import users, post and categories from an external database
- Performance tips for a large user base [closed]
- Long option names fail silently?
- wp_options is GB in size
- Upload files – total size limit – WordPress/Contact Form 7
- Relationship between performance and database size
- Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?
- WordPress and automated MySQL backups to a different host
- Scheduling posts in database
- Size article thumbnails and retrieve them directly from database
- Should I be able to run two different “close” code versions of wordpress with the same DB
- how to store arrays into a database
- How can I create a Bible search engine via WordPress? [closed]
- Error establishing a database connection; After importing DB & Theme
- Where are WP_Errors Saved
- Get all images from this database table
- Delete transients in website
- Error establishing database connection – high traffic?
- Bulk-create posts from SQL database
- I am switching laptops. I host my WP server through MAMP. I want to transfer [closed]
- How can i customize the export personal data file?
- Is there a solution to auto-post data to a WP post from a database
- Auto login subdomain from main domain on single sites with different DB
- Cleanup: best way to remove WooCommerce comments from the wp_comments table
- Logins from WP users table use on another page
- How to use default WP form elements to interact with custom DB table?
- SSO system between 2 WordPress installs on different servers
- is $wpdb->get_results() safe enough
- Does post_meta data need to be unserialzed?
- Can’t update WordFence Options, clear data manually
- Is it possible to have more than 1 MySQL database in my WordPress blog?
- How to fetch records from database WordPress
- restore a db after bad backup
- Best practice to import user base (subscribers) from one website to another?
- AJAX wp-mysql running too slow
- Some weird users in database
- Delete/Replace words from X to Y in post content
- Location of image metadata on my server
- How to create more than one new wpdb object?
- Multiple WordPress sites installs sharing the same database but with different content and domains
- Brandoo WordPress Unable to Update to WordPress 4.2.2
- Remote database -> massive response time increase?
- Is it good practice to import/export a blog to test a redesign?
- Getting value from database table depending on field value
- Getting “Error Establishing a Database Connection” on localhost in new Mac OSX Lion environment
- Secure way to use name_save_pre?
- wpdb->insert not inserting first variable
- Database tables for sports betting integrated in WordPress
- New installation fatal error in 5.9.3 at edit or create entry
- Storing transients giving database error
- I want to replicate a wordpress website over multiple servers
- Is there anyway to split posts to different databases?
- wp-cli + valet: “Error establishing a database connection”
- How to edit custom table data in frontend
- local wordpress broke after changing URL
- Unable to login to a https website via the app after changing from http
- mysqli_query(): MySQL server has gone away for Curl Request
- Is it safe to add INDEX to a column in WordPress database?
- WP website showing blank page after moving from subdomain to main domain
- create a table using user meta custom data
- WPCLI search and replace in a particlar site dir effect another site-dir
- How do I find out from my database what version of WordPress I need?
- How to create a database table?
- Extracted CSV as Array for Custom Query Loop
- Hang Up Followed By Can’t select database
- Database error after importing WordPress
- Send data to database after redirect (and popping out of iframe)
- Pulling values from a sepcific row in table
- import (migration) user database to wp-users
- Create hundreds of users with just ID in phpMyAdmin
- What is best for saving lot of extra detail of user?
- Insert Extra fields added in the front end registration form to DB
- How to create a table [closed]
- WP Multisite Users Not Linking
- Is it possible to have a form page for logged-out users where values are stored persistently?
- Naming conventions for database tables
- Database not loading after transfer via phpmyadmin