Import large database in php my admin

If you’ve got SSH access, you can import it via WP-CLI: https://developer.wordpress.org/cli/commands/db/import/ wp db import file.sql This can handle large imports fine. Note: wp-cli must be installed on the server (check with wp –info) and target database must be empty (check with wp db check). You must manually upload the file.sql import file via sftp/plesk/cpanel … Read more

Display data from phpMyAdmin with WordPress

if you are trying to query from the same database in which your WordPress is installed then there is a great way to do sql query with ease. WordPress has a database access abstraction class called wpdb that allows you to run raw mysql query without any issue. You can start using it like one … Read more

How to change my 3000 Published post status to Draft using PHPMyAdmin

If you have access to phpMyAdmin you can run this SQL query directly: UPDATE {prefix}posts SET post_status=”draft” WHERE post_status=”publish” If you do not have any experience with SQL queries then you should use this solution. Just place this code in functions.php and refresh the WordPress once, and it will be done. function setPostsToDraft() { global … Read more

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