cgi 程序数据库用户名密码修改,用于测试

This commit is contained in:
flykhan 2023-09-23 16:27:09 +08:00
parent fe2a027eaa
commit ba83a05138
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ int main() {
exit(1); exit(1);
} }
if (mysql_real_connect(conn, "localhost", "root", "root", "router", 3306, if (mysql_real_connect(conn, "localhost", "flykhan", "1202", "router", 3306,
NULL, 0) == NULL) { NULL, 0) == NULL) {
fprintf(stderr, "mysql_real_connect() failed\n"); fprintf(stderr, "mysql_real_connect() failed\n");
mysql_close(conn); mysql_close(conn);

View File

@ -21,7 +21,7 @@ int main() {
exit(1); exit(1);
} }
if (mysql_real_connect(conn, "localhost", "root", "root", "router", 3306, if (mysql_real_connect(conn, "localhost", "flykhan", "1202", "router", 3306,
NULL, 0) == NULL) { NULL, 0) == NULL) {
fprintf(stderr, "mysql_real_connect() failed\n"); fprintf(stderr, "mysql_real_connect() failed\n");
mysql_close(conn); mysql_close(conn);

View File

@ -25,7 +25,7 @@ int main() {
exit(1); exit(1);
} }
if (mysql_real_connect(conn, "localhost", "root", "root", "router", 3306, if (mysql_real_connect(conn, "localhost", "flykhan", "1202", "router", 3306,
NULL, 0) == NULL) { NULL, 0) == NULL) {
fprintf(stderr, "mysql_real_connect() failed\n"); fprintf(stderr, "mysql_real_connect() failed\n");
mysql_close(conn); mysql_close(conn);

View File

@ -26,7 +26,7 @@ int main() {
exit(1); exit(1);
} }
if (mysql_real_connect(conn, "localhost", "root", "root", "router", 3306, if (mysql_real_connect(conn, "localhost", "flykhan", "1202", "router", 3306,
NULL, 0) == NULL) { NULL, 0) == NULL) {
fprintf(stderr, "mysql_real_connect() failed\n"); fprintf(stderr, "mysql_real_connect() failed\n");
mysql_close(conn); mysql_close(conn);