Skip to content

Document keepalive for connections using the pool package [Lost connection to MySQL server during query [2013]] #358

@vituri

Description

@vituri

I am constantly getting the error Lost connection to MySQL server during query [2013], which seems to be related to the connection timeout. This happens when I create a con object and try to use it to collect a table after some time (say, 10 minutes). My connection is created using the command

con = 
RMariaDB::dbConnect(
      drv = RMariaDB::MariaDB(),
      username = username,
      password = password,
      host = host,
      port = port,
      dbname = dbname,
      timeout = -1
    )

I also tried to put "timeout = Inf" but with no success. Is the "timeout" argument really working? I am using the github version of DBI and RMariaDB packages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions