Skip to content

Instantly share code, notes, and snippets.

@remoharsono
Created December 11, 2022 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remoharsono/f2cd1c95d11e9e7a648cbfbf5b027ef8 to your computer and use it in GitHub Desktop.
Save remoharsono/f2cd1c95d11e9e7a648cbfbf5b027ef8 to your computer and use it in GitHub Desktop.
MySQL - Import SQL via console
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