- 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
Created
February 11, 2016 09:25
-
-
Save z3ntu/ffbdd4e7a748d89cae61 to your computer and use it in GitHub Desktop.
Instructions to import an SQL file into your mysql installation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment