a1exlism
7/2/2016 - 2:01 PM

mysql_import

  1. mysql terminal import
    1. CREATE DATABASE dbname;
    2. mysql>USE dbname;
    3. mysql>SET NAMES utf8
    4. mysql>SOURCE /absolute/path/YOURs.sql;
  2. terminal import

    $mysql -uUSERNAME -p DBNAME < DBNAME.sql