Skip to content

Commit 482ad26

Browse files
authored
Merge pull request #397 from erizocosmico/docs/default-auth
docs: add troubleshoothing info about connecting with mysql client 8.x
2 parents 93dcb74 + f183ee1 commit 482ad26

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/using-gitbase/getting-started.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,18 @@ SELECT commit_hash, commit_author_email, commit_author_name FROM commits LIMIT 2
6969
| 01ace9e4d144aaeb50eb630fed993375609bcf55 | [email protected] | Antonio Navarro Perez |
7070
+------------------------------------------+---------------------+-----------------------+
7171
2 rows in set (0.01 sec)
72+
```
73+
74+
If you're using a MySQL client version 8.0 or higher, see the following section to solve some problems you may encounter.
75+
76+
## Troubleshooting
77+
78+
```
79+
ERROR 2012 (HY000): Client asked for auth caching_sha2_password, but server wants auth mysql_native_password
80+
```
81+
82+
As of MySQL 8.0 [the default authentication method is `caching_sha2_password`](https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html) instead of `mysql_native_password`. You can solve this using the following command instead:
83+
84+
```
85+
mysql -q -u root -h 127.0.0.1 --default-auth=mysql_native_password
7286
```

0 commit comments

Comments
 (0)