Avatar of Vladimir Buzalka
Vladimir BuzalkaFlag for Czechia

asked on 

How to import DUMP file from remote computer into MySQL server

Hi Experts

I am new to MySQL server and I have just started to play with it. I want to create demo database Employees. I downloaded several .sql files and several .dump files. I understand that sql files contains mainly instructions how to setup database and individual tables, indexes etc. Dump files contains data to be inserted into given tables.

I installed MySql server on Unraid server (here it is installed as docker).

When I connect to server via MySQL Bench, all is OK. I am able to run queries, I am able to run Employees.sql but it gives me error as soon as it reaches where DUMP files are mentioned.

It looks that MySQL is not searching for dump files in directore of remote computer from which I started SQL script, but elsewhere.

So my question  how to import data into mySQL from DUMP file?

Many thanks

Vladimir
DatabasesMySQL ServerSQL

Avatar of undefined
Last Comment
Vladimir Buzalka
SOLUTION
Avatar of Prabhin MP
Prabhin MP
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Vladimir Buzalka

ASKER

Dear Prabhin and noci

thanks for your help, indeed it worked and without any problem. I am just wondering, when I open SQL script, I can see
flush /*!50503 binary */ logs;

SELECT 'LOADING departments' as 'INFO';
source load_departments.dump ;
SELECT 'LOADING employees' as 'INFO';
source load_employees.dump ;
SELECT 'LOADING dept_emp' as 'INFO';
source load_dept_emp.dump ;
SELECT 'LOADING dept_manager' as 'INFO';
source load_dept_manager.dump ;
SELECT 'LOADING titles' as 'INFO';
source load_titles.dump ;
SELECT 'LOADING salaries' as 'INFO';
source load_salaries1.dump ;
source load_salaries2.dump ;
source load_salaries3.dump ;

source show_elapsed.sql ;

I am wondering WHERE I should upload those DUMP files to allow above listed script work?

I am guessing that directly on MySQL machine, but where exactly?

Many thanks and again thanks for your help

V
Databases
Databases

Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo