{"action":"created","issue":{"url":"https://api.github.com/repos/go-sql-driver/mysql/issues/815","repository_url":"https://api.github.com/repos/go-sql-driver/mysql","labels_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/815/comments","events_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/815/events","html_url":"https://github.com/go-sql-driver/mysql/issues/815","id":329889671,"node_id":"MDU6SXNzdWUzMjk4ODk2NzE=","number":815,"title":"mysql5.7 unknown auth plugin","user":{"login":"gocuntian","id":7857351,"node_id":"MDQ6VXNlcjc4NTczNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7857351?v=4","gravatar_id":"","url":"https://api.github.com/users/gocuntian","html_url":"https://github.com/gocuntian","followers_url":"https://api.github.com/users/gocuntian/followers","following_url":"https://api.github.com/users/gocuntian/following{/other_user}","gists_url":"https://api.github.com/users/gocuntian/gists{/gist_id}","starred_url":"https://api.github.com/users/gocuntian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocuntian/subscriptions","organizations_url":"https://api.github.com/users/gocuntian/orgs","repos_url":"https://api.github.com/users/gocuntian/repos","events_url":"https://api.github.com/users/gocuntian/events{/privacy}","received_events_url":"https://api.github.com/users/gocuntian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-06T14:21:18Z","updated_at":"2018-06-11T13:34:57Z","closed_at":null,"author_association":"NONE","body":"### Issue description\r\nTell us what should happen and what happens instead\r\nmysql5.7  unknown auth plugin\r\n### Example code\r\n```go version go1.10.2 darwin/amd64\r\ndb, err := sql.Open(\"mysql\", \"admin:admin@tcp(127.0.0.1:9696)/test\")\r\n\tif err != nil {\r\n\t\tfmt.Println(\"failed to open database:\", err.Error())\r\n\t\treturn\r\n\t}\r\n\tdefer db.Close()\r\n\r\n\trows, err := db.Query(\"SELECT id,str FROM test_shard_hash\")\r\n\tif err != nil {\r\n\t\tfmt.Println(\"fetech data failed:\", err.Error())\r\n\t\treturn\r\n\t}\r\n\tdefer rows.Close()\r\n\tfor rows.Next() {\r\n\t\tvar id int\r\n\t\tvar str string\r\n\t\trows.Scan(&id, &str)\r\n\t\tfmt.Println(\"uid:\", id, \"name:\", str)\r\n\t}\r\n\r\n### Error log\r\n```[mysql] 2018/06/06 22:15:07 auth.go:293: unknown auth plugin:\r\n[mysql] 2018/06/06 22:15:07 driver.go:120: could not use requested auth plugin '': this authentication plugin is not supported\r\n\r\n### Configuration\r\n*Driver version (or git SHA): origin/master\r\n\r\n*Go version:go1.10.2 darwin/amd64\r\n\r\n*Server version:MySQL 5.7\r\n\r\n*Server OS: macOS 10.13.4 (17E202)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/go-sql-driver/mysql/issues/comments/396244978","html_url":"https://github.com/go-sql-driver/mysql/issues/815#issuecomment-396244978","issue_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/815","id":396244978,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjI0NDk3OA==","user":{"login":"julienschmidt","id":944947,"node_id":"MDQ6VXNlcjk0NDk0Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/944947?v=4","gravatar_id":"","url":"https://api.github.com/users/julienschmidt","html_url":"https://github.com/julienschmidt","followers_url":"https://api.github.com/users/julienschmidt/followers","following_url":"https://api.github.com/users/julienschmidt/following{/other_user}","gists_url":"https://api.github.com/users/julienschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/julienschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienschmidt/subscriptions","organizations_url":"https://api.github.com/users/julienschmidt/orgs","repos_url":"https://api.github.com/users/julienschmidt/repos","events_url":"https://api.github.com/users/julienschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/julienschmidt/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T13:34:57Z","updated_at":"2018-06-11T13:34:57Z","author_association":"MEMBER","body":"In any case, it would be great if you could insert a simple `print(data)` after this block https://github.com/go-sql-driver/mysql/blob/d523deb1b23d913de5bdada721a6071e71283618/packets.go#L157-L167 and here https://github.com/go-sql-driver/mysql/blob/d523deb1b23d913de5bdada721a6071e71283618/packets.go#L469-L474 and send us the resulting packet dump."}}
{"actor":{"display_login":"julienschmidt"}}