Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error: default addr for network 'localhost:3306' unknown #178

@bondhan

Description

@bondhan

Hi all,

I tried looking for examples on CLI, but found none, did I miss anything? I tried below in CLI and got erros as follows:

bondhan@optimus:~/Downloads$ migrate -source file://scripts -database mysql://root:password@localhost:3306/texo_ewallet_db down
error: default addr for network 'localhost:3306' unknown

bondhan@optimus:~/Downloads$ migrate -source file://scripts -database mysql://root:[email protected]:3306/texo_ewallet_db down
error: default addr for network '127.0.01:3306' unknown

I ping localhost and it is there? Is there anything I missed? thanks.

bondhan@optimus:~/Downloads$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.073 ms
^C
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.073/0.073/0.073/0.000 ms

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