Professional Documents
Culture Documents
1500]
C:\Users\62877>cd\
C:\>cd xampp
C:\xampp>cd mysql
C:\xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -u root
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
| Database |
+--------------------+
| bank_rendy |
| information_schema |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| test |
+--------------------+
-> ;
+-----------------------+
| Database |
+-----------------------+
| bank_rendy |
| information_schema |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| reservasi_penerbangan |
| test |
+-----------------------+
Database changed
-> );
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near '' at line 1
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near ')' at line 5
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near ')' at line 5
-> );
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
->
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near ')' at line 9
MariaDB [reservasi_penerbangan]> create table pembeli(
-> );
+---------------+-------------+------+-----+---------+----------------+
+---------------+-------------+------+-----+---------+----------------+
+---------------+-------------+------+-----+---------+----------------+
-> ;
-> );
-> );
ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be
defined as a key
-> );
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near 'Kode_Pesan int not null,' at line 1
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near 'CONSTRAINT Nomor_Pembeli FOREIGN
KEY (Nomor_Pembeli) REFERENCES pembeli (Nomo...' at line 9
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near ')' at line 10
-> );
+-----------------------+
| Database |
+-----------------------+
| bank_rendy |
| information_schema |
| mysql |
| penjualan |
| performance_schema |
| phpmyadmin |
| reservasi_penerbangan |
| test |
+-----------------------+
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to
your MariaDB server version for the right syntax to use near '' at line 1
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| pembeli |
+---------------------------------+
-> );
Query OK, 0 rows affected (0.306 sec)
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| pembeli |
| pemesanan |
+---------------------------------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
-> );
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| pembeli |
| pemesanan |
+---------------------------------+
-> );
ERROR 1005 (HY000): Can't create table `reservasi_penerbangan`.`pemesanan` (errno: 121
"Duplicate key on write or update")
-> );
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| pembeli |
| pemesanan |
+---------------------------------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
-> );
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| pembayaran |
| pembeli |
| pemesanan |
+---------------------------------+
+-----------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+-------------+------+-----+---------+-------+
+-----------------+-------------+------+-----+---------+-------+
-> );
-> );
-> );
-> ;
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| maskapai |
| pembayaran |
| pembeli |
| pemesanan |
| pesawat |
| tiket |
+---------------------------------+
-> );
-> );
+---------------------------------+
| Tables_in_reservasi_penerbangan |
+---------------------------------+
| agen |
| bank |
| maskapai |
| pembayaran |
| pembeli |
| pemesanan |
| pesawat |
| pilot |
| tiket |
+---------------------------------+
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
+---------------+-------------+------+-----+---------+----------------+
+---------------+-------------+------+-----+---------+----------------+
+---------------+-------------+------+-----+---------+----------------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
+-------------------+-------------+------+-----+---------+-------+
+-----------------+-------------+------+-----+---------+-------+
+-----------------+-------------+------+-----+---------+-------+
+-----------------+-------------+------+-----+---------+-------+
+-----------------+---------+------+-----+---------+-------+
+-----------------+---------+------+-----+---------+-------+
+-----------------+---------+------+-----+---------+-------+
+---------------+---------+------+-----+---------+-------+
+---------------+---------+------+-----+---------+-------+
+---------------+---------+------+-----+---------+-------+
+--------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+-------------+------+-----+---------+-------+
+--------------+-------------+------+-----+---------+-------+
+------------+---------+------+-----+---------+-------+
+------------+---------+------+-----+---------+-------+
+------------+---------+------+-----+---------+-------+
+-----------+---------+------+-----+---------+-------+
+-----------+---------+------+-----+---------+-------+
+-----------+---------+------+-----+---------+-------+
MariaDB [reservasi_penerbangan]>