I have got error when try to insert data using PHP code to wordpress database.
Error like this :
Connect failed: Access denied for user 'username'@'localhost' (using password: NO)” in wordpress
How can I fix this.
I'm working on live server.
I have got error when try to insert data using PHP code to wordpress database.
Error like this :
Connect failed: Access denied for user 'username'@'localhost' (using password: NO)” in wordpress
How can I fix this.
I'm working on live server.
Check your config.php in the main folder and look for this lines if there configure correctly.
/** MySQL database username */
define('DB_USER', '');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');