First time settings up Wordpress with Ubuntu
if you follow the instructions to the T with ubuntu 9.10 you get a damn “cannot connect to database” error when you go to localhost/wordpress. To solve it open /etc/wordpress/config-localhost.php and get your temp password (e.g. ABCD1234)
then log into mysql with mysql -u root -p and type your password. when you get the mysql> prompt, set the password:
mysql> SET PASSWORD FOR ‘wordpress’@'localhost’ = OLD_PASSWORD(’ABCD1234′);
Query OK, 0 rows affected (0.00 sec)
it should be fixed
then log into mysql with mysql -u root -p and type your password. when you get the mysql> prompt, set the password:
mysql> SET PASSWORD FOR ‘wordpress’@'localhost’ = OLD_PASSWORD(’ABCD1234′);
Query OK, 0 rows affected (0.00 sec)
it should be fixed






