Commit 6858698
authored
Fix PyMySQL localhost resolution to IPv6 (#54)
PyMySQL resolves 'localhost' to ::1 (IPv6) instead of 127.0.0.1,
which causes connection failures for users with existing MySQL
connections configured with 'localhost'.
Normalize localhost to 127.0.0.1 to ensure TCP/IP connections work.
Co-authored-by: Peter Adams <18162810+Maxteabag@users.noreply.github.com>1 parent 17855d8 commit 6858698
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | | - | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
0 commit comments