C:\Documents and Settings\Administrator>cd c:\wamp
C:\wamp>cd C:\wamp\bin\mysql\mysql5.1.36\bin
C:\wamp\bin\mysql\mysql5.1.36\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.1.36-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+-----------------------+
| Database |
+-----------------------+
| information_schema |
| test |
| transport_requisition |
+-----------------------+
23 rows in set (1.16 sec)
db anda belum wujud.
mysql> create ehr;(Pastikan lokasi fail anda)
mysql> use ehr;
mysql> source C:/ehr.sql;Tekan Enter.
Untuk memastikan database anda dan tables di dalamnya telah berjaya diwujudkan, simply type;
show tables;
Database berjaya diimport ke local pc anda!
No comments:
Post a Comment