rubygems - MySQL meltdown; 1045 -


it first day trying create mysql server on mountain lion 64x mac. have installed mysql 5.6.12 downloading mysql dev.

the problem is, i cannot turn mysql off system preferences. installed mysql2 ruby gem. when start rails , try access @ localhost:3000, get:

access denied user 'root'@'localhost' (using password: no) 

in short, must have done wrong. installed mysql using homebrew using dev dmg installer. did break it?

update:

still having issues. unistalled mysql using tutorial: http://maison.io/blog/removing-mysql-osx

then unistalled using homebrew tried gem check mysql2 got error:

    mysql2-0.3.11.gem has 8 problems     ext/mysql2/.rubyarchdir.time:     file     ext/mysql2/makefile:     file     ext/mysql2/client.o:     file     ext/mysql2/mkmf.log:     file     ext/mysql2/mysql2.bundle:     file     ext/mysql2/mysql2_ext.o:     file     ext/mysql2/result.o:     file     lib/mysql2/mysql2.bundle:     file 

ok fine. amended database.yml. need create new database. i'm using rake create:db

the issue:

    couldn't create database {"adapter"=>"mysql2", "encoding"=>"utf8",              "database"=>"simple_cms_test", "pool"=>5, "username"=>"root", "password"=<password>,      "socket"=>"/tmp/mysql.sock"} 

another error:

tried running:

    mysql_install_db --basedir=/usr/local     fatal error: not find my-default.cnf 

i totally @ loss. thoughts?


Comments