Op 20 augustus 2023
databaseserver $ mysql -uadmin_pgt -p databaseserver mariadb> INSERT INTO datacenter.oses (osid,osnaam) VALUES (1,"ubuntu 22.04"); databaseserver mariadb> INSERT INTO datacenter.oses (osid,osnaam) VALUES (2,"fedora 38"); databaseserver mariadb> INSERT INTO datacenter.oses (osid,osnaam) VALUES (NULL,"windows");
databaseserver $ mysql -uadmin_pgt -p databaseserver mariadb> INSERT INTO datacenter.servers -> (servernaam,osid,ipbeheer,ipdatabase,ipnfs,ipweb,ipnat) -> VALUES -> ('fd2-ubuntu-webserver',1,'10.10.0.11','10.20.0.11','10.30.0.11','10.50.0.11','dhcp'); databaseserver mariadb> SELECT * FROM datacenter.servers; databaseserver mariadb> INSERT INTO datacenter.servers -> (servernaam,osid,ipbeheer,ipdatabase,ipiscsi,ipnat) -> VALUES -> ('fd2-ubuntu-databaseserver',1,'10.10.0.12','10.20.0.12','10.40.0.12','dhcp'); databaseserver mariadb> SELECT * FROM datacenter.servers;
Voeg records toe aan servers tabel (Meerdere records per commando)
databaseserver mariadb> INSERT INTO datacenter.servers -> (servernaam,osid,ipbeheer,ipdatabase,ipnfs,ipiscsi,ipweb,ipnat) -> VALUES -> ('fd2-ubuntu-storageserver',1,'10.10.0.13','10.30.0.13','10.40.0.13','dhcp'), -> ('fedora2',2,'10.10.0.1','10.20.0.1','10.30.0.1','10.40.0.1','10.50.0.1','nvt');
databaseserver mariadb> SELECT * from datacenter.oses;