Skip to content

Commit fe63cdd

Browse files
author
Yves Trudeau
committed
Jira DISTMYSQL-226: added the parameter maxAllowedPacket=0 to force the driver to retreive the version of the backend MySQL server
1 parent a091725 commit fe63cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/db/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func getMySQLURI() string {
5757
if mysqlURI != "" {
5858
return mysqlURI
5959
}
60-
mysqlURI := fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?timeout=%ds&readTimeout=%ds&rejectReadOnly=%t&interpolateParams=true",
60+
mysqlURI := fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?maxAllowedPacket=0&timeout=%ds&readTimeout=%ds&rejectReadOnly=%t&interpolateParams=true",
6161
config.Config.MySQLOrchestratorUser,
6262
config.Config.MySQLOrchestratorPassword,
6363
config.Config.MySQLOrchestratorHost,

0 commit comments

Comments
 (0)