You are on page 1of 2

Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\eza>xampp 'xampp' is not recognized as an internal or external command, operable program or batch file. C:\Users\eza>cd xampp The system cannot find the path specified. C:\Users\eza>cd\ C:\>cd xampp C:\xampp>cd my sql The system cannot find the path specified. C:\xampp>cd my sql The system cannot find the path specified. C:\xampp>cd mysql C:\xampp\mysql>cd bin C:\xampp\mysql\bin>mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.41-community-nt MySQL Community Edition (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show database -> show databases; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'datab ase show databases' at line 1 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | cdcol | | mysql | | phpmyadmin | | test | | webauth | +--------------------+ 6 rows in set (0.01 sec) mysql> create database universitas; Query OK, 1 row affected (0.05 sec) mysql> use universitas; Database changed mysql> create table dosen( nip varchar<10>not null primary key, nama_dosen varch ar<30>, mata_kuliah varchar<20>,alamat varchar<30> ); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<10>n

ot null primary key, nama_dosen varchar<30>, mata_kuliah varchar<20>,alamat' at line 1 mysql> create table dosen( nip varchar(10)not null primary key, nama_dosen varch ar(30), mata_kuliah varchar(20),alamat varchar(30) ); Query OK, 0 rows affected (0.11 sec) mysql> desc dosen -> desc dosen; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc dosen' at line 2 mysql> desc dosen; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | nip | varchar(10) | NO | PRI | | | | nama_dosen | varchar(30) | YES | | NULL | | | mata_kuliah | varchar(20) | YES | | NULL | | | alamat | varchar(30) | YES | | NULL | | +-------------+-------------+------+-----+---------+-------+ 4 rows in set (0.01 sec) mysql> mhsswa nim nama fak jur matkul alamat agktn matakul kodematkul nama sks nama_dosen

You might also like