wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 163 forks source link

Error establishing a database connection if I do not enter 'root' as my Database user #83

Closed siddhion closed 10 years ago

siddhion commented 10 years ago

The first time I used Yeopress I entered root as my Database user and when Yeopress was finished I would just go to localhost/test and that URL would successfully bring me to http://localhost/first-site/wp-admin/install.php. Also every time, since the first time, I run yo wordpress and add root as my Database user I can successfully get to the install page.

The problem starts when I choose a different name for Datacase user. If I choose a different name and go to http://localhost/test-site I see Error establishing a database connection on that page. I never get taken to the Wordpress install screen.

If I go into the wp-config.php file, change the 'DB_USER' name to root, save and then check http://localhost/test-site I will still see Error establishing a database connection on that page.

I should mention that my user name to get into phpMyAdmin is root. I betting the family jewels that has everything to do with it but it's a risky bet because I'm not 100% sure.

Why does changing the 'DB_USER' name in the wp-config.php not remedy the problem?

And how can I choose a different Database user name and have it all work?

wesleytodd commented 10 years ago

Sounds to me like you have not created the users in mysql. If you look in your logs you should see some error messages telling you why it could not connect.

I do not believe that this issue has anything to do with YeoPress specifically, so I am going to close this. But feel free to comment back here and I will do my best to help.

siddhion commented 10 years ago

ok so you are referring to the mysql logs?

wesleytodd commented 10 years ago

PHP logs, which usually go to apache or nginx logs. It depends a lot on your setup.