trying to install D7 RC4 on xampp on linux (from apachefriends). I'm using FF (if that is relevant). Installer gives me the error:

Failed to connect to your database server. The server reports the following message: SQLSTATE[28000] [1045] Access denied for user 'exampleusername'@'localhost' (using password: YES).

I successfully installed RC2 when it came out. That time I also got stuck on the database step in the installer. If I remember correctly, I changed localhost into 127.0.0.1 back then and it did the trick. However, that doesn't help me now. I'm using a new database and already tried creating another on (and another etc).

Does anyone have a suggestion?

Thanks!

Comments

peezy’s picture

I received a similar error when I first tired to install D7.0 on my local machine (Ubuntu 10.10). Switching from localhost to 127.0.0.1 got me up and running, so maybe your issue is related to how php/mysql packaged with xampp. During installation, Drupal checks /tmp/mysql.sock by default. Creating a symbolic link in /tmp to the .sock file in xampp server my do the trick . The file is probably located in /var/run/something/with/mysql/in/it/mysql*.sock . For example, I symlinked /tmp/mysql.sock to /var/run/mysqld/mysqld.sock:

cd /tmp
ln -s /var/run/mysqld/mysqld.sock mysql.sock

If that doesn't work (again, your mysqld.sock may be somewhere else) you may need to upgrade your version of xampp or change your local server environment. If you switch, one option is Zend server community edition (note that if you're still using some D6 sites you might want to consider using php 5.2 version). As a heads-up Zend doesn't always "play nice" with Drush, but if you're using Linux and have D6 and D7 sites it may be the way to go.

Good luck!

rvk’s picture

thanks for your reply! I'll try the symbolic link or Zend. It puzzles me that I did get D7.0 RC2 to work, because I didn't replace xampp or anything, but I guess something might have changed (or I did something really smart when I installed it back then). Thanks again!

peezy’s picture

You're welcome and good luck!

peezy’s picture

Update: Since my first reply, a lot more more modules work with PHP 5.3. This means that if you are running Ubuntu 10.4 (Lucid) or higher can use the PHP repos instead of Zend server, XAMPP, or anything else. Here are detailed instructions on setting up an Ubuntu LAMP environment.