Can't connect to local MySQL server through socket '/tmp/mysql.sock'

后端 未结 5 1731
悲&欢浪女
悲&欢浪女 2021-01-14 19:24

I am brand-new to web development and RoR - an uber-noob! - and I\'m taking an online RoR course via lynda.com. Excited to join the StackOverflow community, and would reall

5条回答
  •  深忆病人
    2021-01-14 19:39

    I run on the same error and for me the both socket information has shown mysqld. I had two sessions defined in mysql client. I resolved my problem by deleting one session definition and leaving only localhost. After deleting and re-running the application, the connection worked.

    I don't know how it is connected to one another, but it worked, so it might work for someone else too.

提交回复
热议问题