Execute MySQL query using command prompt
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Execute MySQL query using command prompt

on

  • 4,671 views

 

Statistics

Views

Total Views
4,671
Views on SlideShare
4,670
Embed Views
1

Actions

Likes
0
Downloads
14
Comments
0

1 Embed 1

https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Execute MySQL query using command prompt Presentation Transcript

  • 1. Y! : ikhwankrisnadi GTalk: krisnadiikhwanEXECUTE MYSQL QUERYUSING COMMANDPROMPTPREPARED BY: IKHWAN KRISNADI –SOFTWARE ENGINEER
  • 2. ENVIRONMENT Using XAMPP version 1.6.7 (included PHP and MySQL) PHP version 5.2.6 MySQL version 5.0.51b Windows 7 Home as OS Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 3. Y! : ikhwankrisnadi GTalk: krisnadiikhwanSTEPS Prepare MySQL query file For example, add “student” table into “test”
  • 4. STEPS (CONTINUED) Save the query with named “student.sql” Open phpmyadmin using browser. Check “student” table is not existed on “test” database Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 5. STEPS (CONTINUED) Open command prompt Go to “MySQL” directory installation. For example, “MySQL” directory in C:xamppmysql. Go to bin directory Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 6. STEPS (CONTINUED) Type below: mysql -u [user_name] -p [database_name] < [file path of mysql query] For example: mysql -u root –p test < “C:student.sql” Press enter Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 7. STEPS (CONTINUED) Open phpmyadmin using browser, to check it Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 8. STEPS (CONTINUED) Structure of “student” table Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 9. STEPS (CONTINUED) Already add “student” table into “test” database successfully Y! : ikhwankrisnadi GTalk: krisnadiikhwan
  • 10. THANK YOUY! : ikhwankrisnadi GTalk: krisnadiikhwan