Answers for "import db using terminal mysql"

SQL
10

linux command line import mysql database

# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql
Posted by: Guest on June-25-2020
0

import database mysql command line

mysql> create new_database;
mysql> use new_database;
mysql> source (Here you need to import the path of the SQL file);

E.g.:
mysql> source E:/test/dump.sql;
Posted by: Guest on January-13-2022

Code answers related to "SQL"

Browse Popular Code Answers by Language