Well, this time I will explain how
to create a database using the Command Promt and XAMPP
Before
I begin how to create a database in CMD and XAMPP I will explain a little about
MySQL. For this, you are going to use SQL (Structured Query Language). SQL is a
special language that allows programmers to issue instructions or 'query' to
the database.
Creating
a MySQL database via CMD is a bit harder than creating a database directly
using the browser because there is already using the GUI mode (Graphical User Interface)
without having to type SQL commands.
to start, you have to
install xampp on your laptop, but if you don't have the software please download the official website of xampp.
let's
start ....
Make
a mysql database via CMD
1.
Make
sure XAMPP has been able to run well
2.
Run
xampp on the your laptop then click start on apache mysql and make sure the
button start turned into stop indicating that mysql already running.. for more details see the
image below
![]() |
| 1xampp |
3. Press
the Windows + R on your keyboard and enter the word CMD then ok, or you can
also click the Windows logo located in the bottom left - all programs -
Accessoris - Command Prompt
![]() |
| 2cmd |
a) cd c:\xampp\mysql/bin
b) mysql -u root
![]() |
| 3cmd |
5. Once in mysql, it's time to create a database by typing following the command.
a) create database school;
b) show databases;
![]() |
| 4cmd |
![]() |
| 5cmd |
![]() |
| 6cmd |
![]() |
| 7cmd |
![]() |
| 8cmd |
example :
UPDATE students SET name='Mark Feehily' WHERE srn='1231';
example:
SELECT name,gender FROM students;
![]() |
| 10cmd |
Thanks to :
- http://wildanramadhan27.blogspot.co.id/
- http://www.duniailkom.com/tutorial-belajar-mysql-update-data-tabel-dengan-query-update/










Tidak ada komentar:
Posting Komentar