neo neo - 2 months ago 4x
MySQL Question

Uploading large files to Mariadb from cmd

I'm using XAAMP and the information about database is as follows

enter image description here

I was trying to upload employees sample database from through CMD but I don't have much knowledge about mariaDB commands and all the information's on google is for mysql.

My command line for C:\xampp\mysql\bin\mysql.exe opens as below not as normal mysql.

Notice the


enter image description here

I have set a custom password for the database in phpmyadmin for root.

What is the command line to upload the large mysql database from the folder


Actually that is very easy:

First, you need to unzip the database in C:\xampp\mysql\bin\ folder

Then, you have all the *.sql files in that folder, right?

Now, open a command line and type the following commands:

cd C:\xampp\mysql\bin\
mysql.exe -u root -p yourDatabasePassword < employees.sql