yobasystems / alpine-mariadb

MariaDB running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-mariadb/
242 stars 72 forks source link

sql file is in /docker-entrypoint-initdb.d was not executed correctly. #63

Closed heroes1412 closed 1 year ago

heroes1412 commented 2 years ago

i have a wordpress db, but if i mount the .sql file into /docker-entrypoint-initdb.d (-v /opt/dbdump2022":/docker-entrypoint-initdb.d), the docker process some tables, not full +-------------------------------------------------+ | wp_actionscheduler_actions | | wp_actionscheduler_claims | | wp_actionscheduler_groups | | wp_actionscheduler_logs | | wp_commentmeta | | wp_comments | | wp_e_events | | wp_e_submissions | | wp_e_submissions_actions_log | | wp_e_submissions_values | | wp_links | | wp_options | ===> end of list tables =====

after that, i tried mount (-v /opt/dbdump2022":/opt), and then attach to the docker, run cmd mysql -u root -p < /opt/db.sql

everything is OK.

please fix this