how to import mysql database command line
snippet in sql

linux command line import mysql database

user7869

# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql

import database mysql command line

user3507

mysql -u username -p new_database < data-dump.sql

how to import mysql database command line

user6397

mysql>create database yourDatabaseName;
mysql>use yourDatabaseName;

import mysql database command line linux

user841

mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql