Comments (9)
@k1LoW
ローカルの捨てDBなので、実際のパスワードのログを出しますね。
MySQLのバージョンではなく、パスワード内で使われる文字列が問題のようです。
# DEBUG=1 tbls doc mysql://centos69_db_user1:QvAw1VhMVMORLhr#@localhost:3306/tbls_mysql57 ./dbdoc
Error: invalid DSN. parse mysql://centos69_db_user1:QvAw1VhMVMORLhr#@localhost:3306/tbls_mysql57 -> &dburl.URL{URL:url.URL{Scheme:"mysql", Opaque:"", User:(*url.Userinfo)(nil), Host:"centos69_db_user1:QvAw1VhMVMORLhr", Path:"", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:"@localhost:3306/tbls_mysql57"}, OriginalScheme:"mysql", Proto:"tcp", Driver:"mysql", Unaliased:"mysql", DSN:"tcp(centos69_db_user1:QvAw1VhMVMORLhr)/", hostPortDB:[]string{"centos69_db_user1", "QvAw1VhMVMORLhr", ""}}
github.com/k1LoW/tbls/db.Analyze
/root/go/src/github.com/k1LoW/tbls/db/db.go:29
github.com/k1LoW/tbls/cmd.glob..func4
/root/go/src/github.com/k1LoW/tbls/cmd/doc.go:56
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).execute
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:766
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:852
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).Execute
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:800
github.com/k1LoW/tbls/cmd.Execute
/root/go/src/github.com/k1LoW/tbls/cmd/root.go:53
main.main
/root/go/src/github.com/k1LoW/tbls/main.go:34
runtime.main
/usr/lib/golang/src/runtime/proc.go:195
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:2337
from tbls.
@k1LoW
おお、パスワードをURLEncodeしたらうまくいきました。
tblsのreadmeに書いておいていただけると助かります(忘れるので)
# DEBUG=1 tbls doc mysql://centos69_db_user1:QvAw1VhMVMORLhr%23@localhost:3306/tbls_mysql57 ./dbdoc
dbdoc/schema.png
dbdoc/users.png
dbdoc/README.md
dbdoc/users.md
from tbls.
該当箇所のエラー詳細を出せるようにしました。もう一度 go get -u
後に試してもらっても良いですか? 🙏
from tbls.
# go get -u github.com/k1LoW/tbls
# tbls version
0.10.1
# DEBUG=1 tbls doc mysql://user:password@localhost:3306/tbls_mysql57 ./dbdoc
Error: invalid DSN mysql://user:password@localhost:3306/tbls_mysql57
github.com/k1LoW/tbls/db.Analyze
/root/go/src/github.com/k1LoW/tbls/db/db.go:29
github.com/k1LoW/tbls/cmd.glob..func4
/root/go/src/github.com/k1LoW/tbls/cmd/doc.go:56
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).execute
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:766
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:852
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).Execute
/root/go/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:800
github.com/k1LoW/tbls/cmd.Execute
/root/go/src/github.com/k1LoW/tbls/cmd/root.go:53
main.main
/root/go/src/github.com/k1LoW/tbls/main.go:34
runtime.main
/usr/lib/golang/src/runtime/proc.go:195
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:2337
from tbls.
Error: invalid DSN mysql://user:password@localhost:3306/tbls_mysql57
を見る限りinvalidなDSNではない気がしますね。。。
@ymaeyama 再度エラーの充実化をしましたので go get -u
後に試してもらっても良いですか?
from tbls.
MySQLのバージョンではなく、パスワード内で使われる文字列が問題のようです。
ありがとうございます!エラーログを見る限りその通りのようですね。。。
https://github.com/xo/dburl/blob/master/dburl_test.go#L99 にあるように #
を urlencodeして試してもらってもよいですか?
from tbls.
@ymaeyama
良かったです!長い時間お付き合いいただきありがとうございました!!! 🙏
from tbls.
こちらこそ真摯に対応頂きありがとうございました。
大変ありがたかったです!
from tbls.
Added !!! 7828d2e
from tbls.
Related Issues (20)
- [setup-tbls] `Error: unsupport content types: [ text/plain; charset=utf-8]` HOT 5
- Better ER diagrams with more than two rows HOT 1
- Error generating with foreign key in PostgreSQL HOT 1
- Listing functions doesn't respect include filter HOT 1
- Support of old MSSQL versions HOT 1
- go install show warning error HOT 2
- Parse error when generating Mermaid ER diagram due to double quotes in entity attribute comments HOT 2
- Add Hyperlinks to "Tables of" Sheet for Sheets in Excel Output HOT 1
- Documentation for Viewpoints HOT 1
- Lint rule "requireViewpoints" HOT 1
- Add the installation guide with aqua to the document
- Add "Arguments" to the field to sort in function category. HOT 2
- Refer viewpoints from tables HOT 1
- C warning in graphviz dependency HOT 2
- One-to-one relations are incorrectly exported as one-to-many in mermaid diagram HOT 4
- Viewpoints from tables not refered just in `diff` HOT 1
- D2 diagram support
- download v1.72.0 getting error HOT 3
- Distinguish Views from Tables in README.md HOT 5
- Configuration File Customization - Support for custom file names HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tbls.