php - "We were able to connect to the database server" error in WordPress -


i not find answer. have production website production db. have backed db , restored development environment created development website in same server, same cpanel, same user , same password both dbs. magento platform 1.9.2, although not think important. here issue: can execute sql in development db same sql sentence not execute in production db. have uploaded wp development , isntalled using development db magento installation, when try run wp installation production site, wp replies "we able connect database server". remote mysql, firewall, etc same both db, cause of , how solve it? thank you.

the error we able connect database server means wp can connect database, user or password or permissions wrong.

are sure database user in wp-config.php has adequate permissions database? try giving user privileges, i.e. select, insert, update, delete, create, drop, index, alter, create temporary tables database.

and, try wp_debug find php errors may indicate other connection issues.

add

define( 'wp_debug', true ); define( 'wp_debug_log', true );

in wp-config.php , debug.log file in wp-content.

and optionally add this

define( 'wp_debug_display', true);

to wp-config.php log , dump them browser.

see https://codex.wordpress.org/wp_debug


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -