How do I find all admin users using phpmyadmin?

We can generate the SQL with: $query = new WP_User_Query( [ ‘role’ => ‘Administrator’, ‘count_total’ => false, ] ); echo $query->request; that outputs: SELECT wp_users.* FROM wp_users INNER JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id ) WHERE 1=1 AND ( ( ( wp_usermeta.meta_key = ‘wp_capabilities’ AND wp_usermeta.meta_value LIKE ‘%\”Administrator\”%’ ) ) ) ORDER BY user_login … Read more

Making someone a WordPress administrator using PhpMyAdmin

You actually want to look in the wp_usermeta table. Once in there, look for the entry that has ‘wp_user_level‘ in it’s ‘meta_key’ column and has the matching ‘user_id’ that you would like to update. Then change that ‘meta_value’ to 9 or 10. It is also required to update the ‘wp_capabilities‘ meta_key value to ‘a:1:{s:13:”administrator”;s:1:”1″;}‘ Link … Read more

Redirecting to old domain after migration

My issue is resolved, I am posting this as an answer so that someone else can benefit out of it. My issue was, siteurl and homeurl were not updated, so I have placed define(‘RELOCATE’,true); in my wp-config.php file. And again tried to access the website , it gone to the correct URL but all the … Read more

Auto increment in phpmyadmin

I have an existing database using PHP, MySQL and phpMyAdmin. When users become a member on my website, I need the system to create a unique membership number for them using a five digit number. for e.g 83773. I guess it is like generating a random password except I only want numbers for my members. … Read more

MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)

I installed xampp,but when I tried to run it I got an error as thus: Error MySQL said: Documentation 1045 – Access denied for user ‘root’@’localhost’ (using password: NO) Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check … Read more

Delete a database in phpMyAdmin

After successful login to cPanel, near to the phpMyAdmin icon there is another icon MySQL Databases; click on that. That brings you to the database listing page. In the action column you can find the delete database option click on that to delete your database!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)