W
W
WebforSelf2021-08-07 23:33:28
linux
WebforSelf, 2021-08-07 23:33:28

How to import database not to local mysql server?

Friends, there was such a problem. Mysql 5.7 was required on my server, and since version 8
is installed, 5.7 was deployed through the Docker container and connected to the panel.

The question now is how to import the database through the console.

I downloaded local databases in this way.
mysql -ulogin -ppassword database < db.sql

Now I have 5.7 on
Host: 127.0.0.1
Port: 3310

How to upload a dump?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-08-07
@WebforSelf

With -host and -port keys
Start by reading man mysql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question