KONFIGURASI DATABASE SERVER
-Konfigurasi Database
-Lakukan Konfigurasi Router
note : address 192.168.12.113
subnetmask 255.255.255.0
address 192.168.1.1
subnetmask 255.255.255.252
broadcast 192.168.1.3
-aktifkan file iso DVD1
-#apt-cdrom add
-#apt-get install mysql-server mysql-client
-password:1234
-#apt-get install phpmyadmin
-web server to reconfigure automatically:apache diberi (*)
-configure database for phpmyadmin with db-config_common (Yes)
-password:1234
-Buka Client (Windows 7)
Catatan: IP address 192.168.1.2
Subnet mask 255.255.255.252
Default gateway 192.168.1.1
DNS Server 8.8.8.8
DNS Server 8.8.4.4
-Buka Mozilla Firefox, ketik 192.168.12.113/phpmyadmin
-User : root
password : 1234
-Klik Menu New
database name : barang, kemudian Create
-Buka barang,kemudian isi
name : stok_barang
number : 4
GO
-Isikan :
name : id_barang
name : nama_barang
name : jumlah_barang
name : tanggal_masuk
type : INT
type : Varchar
type : INT
type : DATE
leght : 11
leght : 100
leght : 11
leght : -
Index : Primary ✓
kemudian save
-Pilih barang
name : order_barang
colom : 3
Kemudian GO
-Isikan :
name :id_order
name :id_barang
name :nama_barang
type :INT
type :INT
type :Varchar
leght : 11
leght : 11
leght : 100
index : primary ✓
index : INDEX
Kemudian Save
-Klik barang, Klik more kemudian pilih designer
Pilih relasi, Klik id_barang(stok_barang) ke id_barang(order_barang)
On delete : CASCODE
On delete : CASCODE
Jika berwarna hijau/kuning maka berhasil
Komentar
Posting Komentar