Project

General

Profile

Actions

Defect #11685

closed

Can't connect to MySQL server on 'localhost' (10061)

Added by Giovanni Junior over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I got the error "Can't connect to MySQL server on 'localhost' (10061)" when trying to execute migrations on my old Redmine database.

After lots of searching I found this page, who solved my problem: https://github.com/brianmario/mysql2/issues/157

The problem seems to be that Mysql2 adapter doesn't understand the hostname "localhost". To solve it, I had to replace "localhost" with "127.0.0.1" in database.yml.

I think the RedmineInstall guide should warn users to use "127.0.0.7" instead of "localhost" when using the Mysql2 adapter.

My configuration:
Windows 7 64 bits
MySQL 5.5 (or 5.1) 64 bits
MySQL Connector C 6.0.2 32 bits
Ruby 1.9.3 32 bits
Mysql2 gem, version 0.3.11

Actions

Also available in: Atom PDF