Created
December 11, 2022 02:45
-
-
Save remoharsono/f2cd1c95d11e9e7a648cbfbf5b027ef8 to your computer and use it in GitHub Desktop.
MySQL - Import SQL via console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -p | |
SET FOREIGN_KEY_CHECKS=0; | |
use database_name; | |
SOURCE data.sql; | |
SET FOREIGN_KEY_CHECKS=1; | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment