Quantcast
Channel: Abu Ashraf Masnun » sql
Viewing all articles
Browse latest Browse all 4

Import SQL Script to MySQL using the Command Line

$
0
0

Summary: We have acquired a large databse dump which we need to import into our local system. Since the database size is large, phpmyadmin can’t help. MySQL command line tool comes to our rescue :)


Change directory to where our SQL script is:

cd ~/Downloads

First login to mysql:

mysql -u root -ppassword

Change database to our target database:

use somedb;

Execute the SQL Script:

source somedb_backup.sql


Viewing all articles
Browse latest Browse all 4

Trending Articles