Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

unix_socket support #299

@nerijus

Description

@nerijus

Mariadb supports Unix Socket Authentication Plugin - https://mariadb.com/kb/en/authentication-plugin-unix-socket/
With it it is possible to login without password, for example:

[root@localhost ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5672
Server version: 10.4.19-MariaDB-log MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

dumpling seems to not support it:

[root@localhost ~]# ./dumpling -P3306
Release version: 
Git commit hash: 
Git branch:      
Build timestamp: 2021-06-14 04:26:05Z
Go version:      go version go1.16.5 linux/amd64

[2021/06/21 15:55:51.754 +00:00] [INFO] [versions.go:55] ["Welcome to dumpling"] ["Release Version"=] ["Git Commit Hash"=] ["Git Branch"=] ["Build timestamp"="2021-06-14 04:26:05"] ["Go Version"="go version go1.16.5 linux/amd64"]

create dumper failed: sql: SELECT version(): Error 1045: Access denied for user 'root'@'127.0.0.1' (using password: NO)

[root@localhost ~]# ./dumpling -hlocalhost -P3306
Release version: 
Git commit hash: 
Git branch:      
Build timestamp: 2021-06-14 04:26:05Z
Go version:      go version go1.16.5 linux/amd64

[2021/06/21 15:56:05.093 +00:00] [INFO] [versions.go:55] ["Welcome to dumpling"] ["Release Version"=] ["Git Commit Hash"=] ["Git Branch"=] ["Build timestamp"="2021-06-14 04:26:05"] ["Go Version"="go version go1.16.5 linux/amd64"]

create dumper failed: sql: SELECT version(): Error 1045: Access denied for user 'root'@'::1' (using password: NO)

It would be nice to support it.

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