Skip to content

configuration error? #3

Description

@ivomans

I tried to get this module running.

Executing commands in scope Thingsdb went without any error message:

new_module('mysql', 'github.com/thingsdb/module-go-mysql');
set_module_conf('mysql', {
            dsn: "root:......@mysql/dev",
            conn_max_lifetime: 3,
            max_idle_conn: 10,
            max_open_conn: 1
});

But afterwards trying any query_rows or get_db_stats command result all in error message:
modulemysqlis not running (status: configuration error; useset_module_conf(..)to update the module configuration)

Same problem when trying with format dsn: "root:.......@tcp(127.0.0.1:3306)/dev",

Don´t see what could be wrong with the configuration. Mysql database is up and running, database 'dev' exists.
Some errormessage at the set_module_conf command would be useful, if there really is an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions