how can i import my database specifying user on rails? -


i very new on ruby (and rails) , want import project (already on progress), , set rails server , all, realized databases.yml not it, there databases-remote.yml says adapter: mysql2 makes me think using mysql , created user , password , in part of migrates found many files .rb defining class represents (i think) table, date format in beggin, so... reading found out can import rake db:migrate generates me error authenticating root user, defined on databases.yml user of mysql password, anyway specify when make rake db:migrate ??

thanks

rake db:migrate connects database specify in config/database.yml, in development section , creates necessary structure can run project. think problem need copy config/database-remote.yml config/database.yml , specify user/password there.

also, try connecting manually mysql user created can test connection works:

> mysql -u your_username -p -d your_database > enter password: ***** 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -