How to know my username and password in mysql console

Posted by msheshtawy on Stack Overflow See other posts from Stack Overflow or by msheshtawy
Published on 2010-06-14T22:38:12Z Indexed on 2010/06/14 22:42 UTC
Read the original article Hit count: 161

Filed under:
|

i've installed mySQL .. i entered my password , but i can't remember they've asked me for a username .. is it admin or root ?

i wanna add the username and password to RubyonRails database.yml

i remember i found a command that tells me the username and password in the mysql console .. but can't find it again !

that's the part i wanna add in my database.yml

development:
 adapter: mysql
 database: myprojectname_development
 username: unknown
 password: devrailspassword
 host: localhost

Since i just started development i don't have a database yet, so there is no way of trial and error ( not that i know of )

© Stack Overflow or respective owner

Related posts about mysql

Related posts about ruby-on-rails