how to export records from mysql?

Viewed 65

Hello, I use docker-compose to run answers with mysql as database. I just want to ask how to export data from mysql?

When I use mysql -p -u root login mysql,but it reports an error. Can't find the database answer.

image.png

image.png

image.png

1 Answers

I've found the reason. I should specify the mysql port 13306.