# Getting a mysql error connection error

**URL:** <https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241>\
**Category:** Rails\
**Created:** [June 30, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241 "2007-06-30T22:40:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishekkh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@abhishekkh](https://www.ruby-forum.com/u/abhishekkh)\
**Post date:** [June 30, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241/1 "2007-06-30T22:40:07Z")

</div>

Hi I was jus trying to get the tutorial 1 on [lamp.com](http://lamp.com) to get working.  
I am using mysql 5.1. I have the setup the mysql with a username:root  
and a password:\*\*\*\*\*\*  
But when I am trying to acess the databse I get a connection error. no  
password found.

- abhishekl

---

<div class="post-metadata">

**Author:** ![abhishekkh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@abhishekkh](https://www.ruby-forum.com/u/abhishekkh)\
**Post date:** [June 30, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/getting-a-mysql-error-connection-error/108241/2 "2007-06-30T22:54:09Z")

</div>

Hi Abhiskekkh,

abhishekkh wrote:

> Hi I was jus trying to get the tutorial 1 on [lamp.com](http://lamp.com) to get working.  
> I am using mysql 5.1. I have the setup the mysql with a username:root  
> and a password:\*\*\*\*\*\*  
> But when I am trying to acess the databse I get a connection error. no  
> password found.

Not sure I understand exactly what you mean when you say “trying to  
access  
the database”, but if you mean you’re getting this error when you try to  
access the database via your Rails app… if you created a password  
for  
the MySQL user name root, then you need to specify that password in  
database.yml. If I’ve misunderstood, you’ll need to provide more detail  
on  
what exactly is set up how.

hth,  
Bill
