Skip to main content
Home
Custom Software Development
  • Consulting
    • All Consulting Services
    • Ruby on Rails
    • ReactJs
    • Drupal
    • Pricing
  • Hosting
    • All Managed Appliances
    • Advanced CRM & Email Client
    • Jenkins
    • SMT
    • Pricing
  • About us
    • Our Technology Stack
    • Our Process
    • Our Team
    • Case Studies
    • Contact Us
Vote up!

6

Vote down!

[FIXED]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' when running mysql database in docker, for a ruby on rails application

By admin on 2025-03-12
 
Ruby on Rails.
Troubleshooting.
Issue 2025Q2
  • Log in or register to post comments

Change

host: localhost

to 

host: 127.0.0.1

in config/database.yml, to make the connection over TCP/IP rather than local socket.

Please login or register to post a comment.

User account menu

  • Register
  • Log in

Pages

  • Issues
  • Engineering Blog
  • Site Updates
  • Tags
  • Careers
  • Contact us
  • English
  • Español
  • Português
  • Russian
  • LinkedIn linkedin logo
  • Youtube youtube logo
Copyright (c) 2023 Wasya Co
Terms & Conditions

  201 W 5th St 11th Floor, Austin, TX 78701