Skip to content

Commit

Permalink
Update set_testing-240-t.cpp
Browse files Browse the repository at this point in the history
fix connection creation for testuser
  • Loading branch information
mirostauder authored Nov 21, 2023
1 parent 7eeaf0b commit 873cb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tap/tests/set_testing-240-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ void * my_conn_thread(void *arg) {
exit(EXIT_FAILURE);
}
int port = local ? 0 : ( cl.port + rand()%multiport );
MYSQL *rc=mysql_real_connect(mysql, cl.mysql_host, cl.mysql_username, cl.mysql_password, schema, port, NULL, 0);
MYSQL *rc=mysql_real_connect(mysql, cl.host, cl.username, cl.password, schema, port, NULL, 0);
if (rc==NULL) {
if (silent==0) {
fprintf(stderr,"Error while connecting on %s:%d : %s\n", cl.mysql_host , port , mysql_error(mysql));
fprintf(stderr,"Error while connecting on %s:%d : %s\n", cl.host , port , mysql_error(mysql));
}
return NULL;
}
Expand Down

0 comments on commit 873cb44

Please sign in to comment.