Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

xorm reverse #18

Closed
Gys opened this issue Mar 26, 2017 · 2 comments
Closed

xorm reverse #18

Gys opened this issue Mar 26, 2017 · 2 comments
Labels

Comments

@Gys
Copy link

Gys commented Mar 26, 2017

I am trying to use xorm reverse but it does not connect my mysql database. Does it not support ip addresses ? I can ping the address without problems.

I tried:
xorm reverse mysql user:password@tcp(192.168.0.4:3306)/database templates/goxorm
But it gives an error:
-bash: syntax error near unexpected token ('`

I also tried:
xorm reverse mysql user:password@192.168.0.4/database templates/goxorm
But that gives another error:
2017/03/26 13:37:11 [Error] reverse.go:176 Default addr for network '192.168.0.4' unknown

@lunny
Copy link
Member

lunny commented Mar 26, 2017

maybe you can try
xorm reverse mysql "user:password@tcp(192.168.0.4:3306)/database" $GOPATH/src/github.com/go-xorm/cmd/xorm/templates/goxorm

@lunny lunny added the question label Mar 26, 2017
@Gys
Copy link
Author

Gys commented Mar 26, 2017

Great ! The "string" did the trick. Thank you !

@Gys Gys closed this as completed Mar 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants