TimeoutException for connecting to MySQL using a hunt-entity.

greenbyte lysenko765 at yandex.ru
Mon Oct 25 07:41:33 UTC 2021


On Monday, 25 October 2021 at 07:15:42 UTC, bauss wrote:
> On Sunday, 24 October 2021 at 20:58:22 UTC, greenbyte wrote:
>> On Friday, 22 October 2021 at 11:51:03 UTC, WebFreak001 wrote:
>>> On Friday, 22 October 2021 at 11:42:34 UTC, greenbyte wrote:
>>>> Hi, all!
>>>>
>>>> I use the hunt-entity library to work with MySQL. I get the 
>>>> hunt.Exceptions.TimeoutException: "Timeout in 30 secs" when 
>>>> trying to connect. I configured MySQL and ran the code from 
>>>> the instructions https://github.com/huntlabs/hunt-entity
>>>>
>>>> MySQL:
>>>> mysql Ver 8.0.27 for Linux on x86_64 (MySQL Community Server 
>>>> - GPL)
>>>>
>>>> DUB:
>>>> version 1.25.0, built on Apr 23 2021
>>>>
>>>> In dub.json enabled "hunt-entity": "~>2.7.3"
>>>
>>> From the error message you posted it seems like it's failing 
>>> to connect. Did you check that the IP address and port you 
>>> are connecting to are correct? In case of localhost, try 
>>> 127.0.0.1 instead of "localhost"
>>
>> Yes, I did.
>
> Did you check your firewall configuration and that you're 
> allowed to establish a connection to the port?

Firewall disabled.


More information about the Digitalmars-d-learn mailing list