Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Created February 11, 2016 09:25
Show Gist options
  • Save z3ntu/ffbdd4e7a748d89cae61 to your computer and use it in GitHub Desktop.
Save z3ntu/ffbdd4e7a748d89cae61 to your computer and use it in GitHub Desktop.
Instructions to import an SQL file into your mysql installation.

Instructions

how to import a .sql file into your mysql database

  • Change directory to the directory of your .sql file cd <directory-of-sql-script>
  • Enter the mysql console C:\xampp\mysql\bin\mysql.exe -u root
  • Create the database create database schuldb;
  • Use the created database use schuldb;
  • Import the .sql file source schuldb.sql;
  • Exit out of the mysql console exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment