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,