From f993cd14d257ff69bbd7793340bd5b49f76ffd11 Mon Sep 17 00:00:00 2001 From: wang_chengh <13383929+wang_chengh@user.noreply.gitee.com> Date: Wed, 20 Sep 2023 21:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=B8=8A=E4=BC=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/cgi-bin/add_data.sql | 4 ++-- www/cgi-bin/creat_table.sql | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/www/cgi-bin/add_data.sql b/www/cgi-bin/add_data.sql index 4decbb5..54c0bcc 100644 --- a/www/cgi-bin/add_data.sql +++ b/www/cgi-bin/add_data.sql @@ -1,6 +1,6 @@ INSERT INTO users (username, password) VALUES ('admin', 'admin'); -INSERT INTO ip_mac (username, password) +INSERT INTO ip_mac (ip, mac) VALUES ('192.168.0.125', '00:0C:CF:93:8C:92'); -INSERT INTO ip_mac (username, password) +INSERT INTO ip_mac (ip, mac) VALUES ('192.168.0.117', '08:00:20:0A:8C:6D'); \ No newline at end of file diff --git a/www/cgi-bin/creat_table.sql b/www/cgi-bin/creat_table.sql index 5f21c93..ec30347 100755 --- a/www/cgi-bin/creat_table.sql +++ b/www/cgi-bin/creat_table.sql @@ -7,8 +7,6 @@ CREATE TABLE if not exists users ( username VARCHAR(50) NOT NULL, password VARCHAR(255) NOT NULL ); -INSERT INTO users (username, password) -VALUES ('admin', 'admin'); -- 创建ARP映射表 CREATE TABLE if not exists ip_mac( id INT AUTO_INCREMENT PRIMARY KEY,