Correct MySQL configuration for Ruby on Rails Database.yml file

前端 未结 6 638
终归单人心
终归单人心 2020-12-02 08:03

I have this configuration:

development:
  adapter: mysql2
  encoding: utf8
  database: my_db_name
  username: root
  password: my_password
  host: mysql://12         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 08:40

    None of these anwers worked for me, I found Werner Bihl's answer that fixed the problem.

    Getting "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'" error when setting up mysql database for Ruby on Rails app

提交回复
热议问题