wesleytodd / YeoPress

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

Not possible to use dots in databasename #34

Closed denvers closed 10 years ago

denvers commented 10 years ago

Seems it's not possible to use a database name containing a dot.

wesleytodd commented 10 years ago

That is correct. MySQL does not allow this. See here for more details: http://dev.mysql.com/doc/refman/5.0/en/identifiers.html

denvers commented 10 years ago

Though dots are permitted from MySQL 5.5 >

See: http://dev.mysql.com/doc/refman/5.5/en/identifiers.html And see "proof": https://dl.dropboxusercontent.com/u/6723035/Images/mysql-dot-names.png

wesleytodd commented 10 years ago

Looks right! Sorry for citing outdated docs. So what is stopping you from using dots? Is yeopress failing at some point? There shouldn't be a problem with using dots in your db name if MySQL allows it.

denvers commented 10 years ago

It says: "Database does not exist, or the credentials are wrong!"

wesleytodd commented 10 years ago

That is more of a warning. Also, if the vagrant option is selected I believe that it it will show because it cannot access the database. Maybe if I change the color to yellow so that it is clearly not an error?

I have actually thought about removing that completely, or making it an advanced configuration option. But I haven't gotten to that yet.

wesleytodd commented 10 years ago

I have made some changes in the develop branch that make this more of a warning message. If you feel like running that version you can clone the repo, check out the develop branch and run $ npm link in the root of the project. This is like installing the package globally, so you will override the normal global install. But the develop branch is stable at the moment so it shouldn't be a problem.