database not responding on localhost

Yes, while convenient, let’s rule out the variable of using the $_SERVER[‘HTTP_HOST’] trick and put in the absolute URLs. Here are some handy snippets I use when moving a site (you may want to use these to make sure everything is the same on your install): UPDATE wp_posts SET guid = replace(guid, ‘http://www.olddomain.com’,’http://www.newdomain.com’); UPDATE wp_posts … Read more

Database migration issues – Error #1046 No database selected

99.99% chance that you configure wordpress with wrong database details. make sure you are using correct database details in wp-config.php file /** The name of the database for WordPress */ define(‘DB_NAME’, ‘database_name_here’); /** MySQL database username */ define(‘DB_USER’, ‘username_here’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘password_here’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); some possibilities are … Read more

How to replace permalinks

It sounds like you have not properly updated the “WordPress Address” and “Site Address” at wp-admin -> Settings -> General, or you have defined WP_SITEURL and WP_HOME in wp-config.php and did not adjust the value when the site was moved. I can’t comment on whether the .htaccess file is correct, though I can say that … Read more

What should I write in hostname when I try to install a theme?

This happens when WordPress cannot directly (via php) create files inside the wp-content directory. WordPress asks for FTP credentials to try and upload “manually” the files, you should provide the hostname of the ftp server (example: ftp.yourdomain.com), username and password. Of course you have to have an FTP server set up, which is usually straightforward … Read more

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