N
N
Nikita072021-12-30 14:32:04
MySQL
Nikita07, 2021-12-30 14:32:04

How to import CSV value to MySQL inside Docker container?

Hello everyone, help me deal with a question regarding MySQL inside a Docker container.
I need to import data from CSV files into a MySQL database, I know that I need to use the "LOAD DATA" command for this, but this command only works when the database is installed on a PC, but what if the database is inside a Docker container?
I have never worked with Docker, all I found on the Internet is to install Docker on a PC (I have Windows, if anything), find the official MySQL image, install it, and what's next? How to create a table? How to import data using sql query? No matter how much I searched, there is incomprehensible information everywhere, please help me figure it out

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2021-12-30
@2ord

Just google "docker mysql import csv" and you'll find the answer.
https://stackoverflow.com/questions/58576129/impor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question