Skip to content

Instantly share code, notes, and snippets.

@afurculita
Last active August 29, 2015 14:09
Show Gist options
  • Save afurculita/598bf1aef83fdb421b19 to your computer and use it in GitHub Desktop.
Save afurculita/598bf1aef83fdb421b19 to your computer and use it in GitHub Desktop.
Best way to import large databases in MySql
mysql -u database_user_name -p -D database_name < complete_file_path_with_file_name_and_extension
Here
u stands for User
p stands for Password
D stands for Database
Complete file path with name and extension can be like
c:\folder_name\"folder name"\sql_file.sql
---IF YOUR FOLDER AND FILE NAME CONTAINS SPACE THAN BIND THEM USING DOUBLE QUOTE---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment