mysql - Rails connecting to wrong port when rendering views -
i'm doing research on error, far i've not been able figure out problem.
when run mysqld start mysql server seems run fine except these 2 errors.
rsa private key file not found: /usr/local/var/mysql//private_key.pem. authentication plugins not work. rsa public key file not found: /usr/local/var/mysql//public_key.pem. authentication plugins not work. notice how path has double slash. i'm assuming mysql generates these keys automagically , uses them because i've never created them manually myself.
however rails app's server seems run fine, , shows success message loading view, browser stays blank 1 minute before error page. error page says:
errno::etimedout - operation timed out - connect(2) "localhost" port 35729 so seems rails trying connect local mysql server through port 35729, except it's running on port 3306? i've explicitly set port number in database.yml no avail. there more story that, , i'm trying figure out else happening here.
here database.local.yml referred database.yml
development: adapter: mysql2 database: somepages_dev pool: 5 timeout: 5000 encoding: utf8 i able enter mysql command line type mysql. seems rails misconfigured somehow?
also, found switching other rails projects database rails connection works fine. works fine when make new rails project.
when editing database.locl.yml file here's i've tried: i've tried few permutations far, of return same error. tried using host. host + port. sock path. sock path + host + port. restarted rails server each time made change.
** strange thing of can still run rake commands edit database. can rake db:drop && rake db:create && rake db:migrate && rake db:seed , runs smoothly.
it's when trying render views error pops up
thanks in advance!
the problem using livereload.
{:live_reload_port=>35729}
only half of app activated. had desktop app running not browser counterpart working.
Comments
Post a Comment