troubleshooting Question

mysql_connect() [function.mysql-connect]: Access denied when adding db

Avatar of anothercto
anotherctoFlag for United States of America asked on
MySQL Server
3 Comments1 Solution1166 ViewsLast Modified:
I try to install forum software vanilla using its installer.php. I was asked to create a database.

When I follow installer to add database, like this:

MySQL Server: localhost
MySQL database name: myDB
MySQL user: new_user
MySQL password: pswd
MySQL table prefix: LUM_     (prefilled)

I get errors:

We couldnt connect to the server you provided (localhost). The database responded with the following message: mysql_connect() [function.mysql-connect]: Access denied for user 'myUserName'@'localhost' (using password: YES)

I started mysqld_safe.

I also tried /usr/local/mysql/bin/mysqladmin -u root password pswd   which gives error:
"connect to server localhost failed. access denied for user root@localhost (using password: NO)"

It looks like i have some problems with mysql??

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros