In this article, I will share with you how to import multiple SQL files in the database at the same time using a command line. many developers don't know how the import more than one file at the same time using the command line in ubuntu. so, here I will share one trick for this problem.
If you have multiple SQL files in one folder and you want to import that all at the same time so, no need to waste your time. please follow the simple steps.
First, we need to merge that all SQL files into one single file using the below ubuntu command.
cat *.sql > all_files.sql
then import that file in your selected database using the following command.
sudo mysql -u root -p
then hit the Enter and put your MySQL
password.
use your_database_name
source path_your_sql_file
i hope you like this article.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Set Up Angular Project From Scratch
Angular is open-source web application f...Laravel 8 Create Events in Fullcalendar using Ajax
In this article,I will show you how you...How to install Samba share and transfer files between Windows and Linux
Samba is powerful and open-source tool f...How to Get Portion of URL Path in JavaScript
Use the window.location Object You ca...Laravel 8 Create Unique Slug Tutorial Example
In this article, we will provide example...