From ba83a0513879673afb68b8ce17ddec45e6bee5d6 Mon Sep 17 00:00:00 2001 From: flykhan Date: Sat, 23 Sep 2023 16:27:09 +0800 Subject: [PATCH] =?UTF-8?q?cgi=20=E7=A8=8B=E5=BA=8F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E7=94=A8=E6=88=B7=E5=90=8D=E5=AF=86=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E7=94=A8=E4=BA=8E=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/cgi-bin/c_mysql_ip_fw_add_del.c | 2 +- www/cgi-bin/c_mysql_ip_fw_view.c | 2 +- www/cgi-bin/c_mysql_ip_mac.c | 2 +- www/cgi-bin/c_mysql_user_pwd.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/cgi-bin/c_mysql_ip_fw_add_del.c b/www/cgi-bin/c_mysql_ip_fw_add_del.c index 7992f55..a4a2b8e 100644 --- a/www/cgi-bin/c_mysql_ip_fw_add_del.c +++ b/www/cgi-bin/c_mysql_ip_fw_add_del.c @@ -22,7 +22,7 @@ int main() { 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) { fprintf(stderr, "mysql_real_connect() failed\n"); mysql_close(conn); diff --git a/www/cgi-bin/c_mysql_ip_fw_view.c b/www/cgi-bin/c_mysql_ip_fw_view.c index 9c2fd14..d435b78 100644 --- a/www/cgi-bin/c_mysql_ip_fw_view.c +++ b/www/cgi-bin/c_mysql_ip_fw_view.c @@ -21,7 +21,7 @@ int main() { 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) { fprintf(stderr, "mysql_real_connect() failed\n"); mysql_close(conn); diff --git a/www/cgi-bin/c_mysql_ip_mac.c b/www/cgi-bin/c_mysql_ip_mac.c index e4e6bfc..f55ca75 100644 --- a/www/cgi-bin/c_mysql_ip_mac.c +++ b/www/cgi-bin/c_mysql_ip_mac.c @@ -25,7 +25,7 @@ int main() { 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) { fprintf(stderr, "mysql_real_connect() failed\n"); mysql_close(conn); diff --git a/www/cgi-bin/c_mysql_user_pwd.c b/www/cgi-bin/c_mysql_user_pwd.c index e835b00..c7f385e 100644 --- a/www/cgi-bin/c_mysql_user_pwd.c +++ b/www/cgi-bin/c_mysql_user_pwd.c @@ -26,7 +26,7 @@ int main() { 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) { fprintf(stderr, "mysql_real_connect() failed\n"); mysql_close(conn);