List:MySQL++« Previous MessageNext Message »
From:Bart Verstraete Date:January 10 2008 9:20am
Subject:Re: mysql++ 3.0 beta2 Connecting troubles
View as plain text  
Bart Verstraete schreef:
> Bart Verstraete schreef:
>> EUREKA
>> found it, the port number I gave is reverted back to 0, so its 
>> mysql++ after all. Now the solution...
> Workaround in the ip address also specify the port, for example 
> "127.0.0.1:3307". Don't have a patch yet,, for mysql++
Squashed it Warren,

In tcp_connection.cpp around line 115:
    // Turn service into a port number
    if (service.empty()) {
        port = 0;
    }

comment the line, or delete it:

//port = 0;

Why is it necessary to change port to 0?

Grts Bart
Thread
mysql++ 3.0 beta2 Connecting troublesBart Verstraete6 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesJonathan Wakely6 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete7 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesJim7 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesJim9 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young7 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan