Docker

How to export mysql or mariadb data from docker

List running dockers that running with mysql or mariadb juzhax@Justins-MacBook-Air ~ % docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7e49a319857c mariadb “docker-entrypoint.s…” 24 hours ago Up 21 minutes 0.0.0.0:54482->3306/tcp wp-env-mysql-1 Access CLI to mariadb container docker exec -it 7e49a319857c /bin/bash Dump data using mysqldump mysqldump -uroot -p wordpress > /tmp/wordpress.sql Then exit the CLI. Copy the data from docker out docker cp 7e49a319857c:/tmp/wordpr[…]

How to export mysql or mariadb data from docker Read More »

Operation not supported: AH00023: Couldn’t create the mpm-accept mutex

Starting up Recently I install the Bitnami WordPress on Apple MacBook Air M1, after WordPress setup finished, the error appeared after the Starting Apache The Errors (95)Operation not supported: AH00023: Couldn’t create the mpm-accept mutex (95)Operation not supported: could not create accept mutex The fixes Using a Dockerfile with the contents: FROM bitnami/moodle # Some credit goes to: https://www.linode.com/community/questions/16977/server-fails-after-installing-certbot-mpm-run-failed-exiting[…]

Operation not supported: AH00023: Couldn’t create the mpm-accept mutex Read More »

WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Installing Recently I install the Bitnami WordPress for Docker on Apple MacOS with M1 Chip. I followed the documentation from the official Bitnami Wordpress Example console command docker run -d –name wordpress \ -p 8080:8080 -p 8443:8443 \ –env ALLOW_EMPTY_PASSWORD=yes \ –env WORDPRESS_DATABASE_USER=bn_wordpress \ –env WORDPRESS_DATABASE_PASSWORD=bitnami \ –env WORDPRESS_DATABASE_NAME=bitnami_wordpress \ –network wordpress-network \ –volume wordpress_data:/bitnami/wordpress \ bitnami/wor[…]

WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested Read More »

Installing PHP Extension in WP ENV

I need pdo_mysql php extension to use on my Wordpress plugins. After a day of research, I found out that this is the limitation of wp-env. The developers do not want us to touch more to any setting of PHP and Docker. So we have to manually install everytime after wp-env start. You can use this way to install other php extensions. Install pdo_mysql after WP-ENV started. wp-env start docker ps docker exec -it [WORDPRESS_CONTAINER_ID] docker-php-ext-install pdo_mysql docker exec -it [WORDPRESS_CONT[…]

Installing PHP Extension in WP ENV Read More »

ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)

I’m trying to insert new row by using the import function from discourse, create_categories. It throw me this error. What cause this error appear ? I’m using this way to restore the docker data for keep testing on importing Full error message from console Solution In many cases, it should be corrupted in PostgreSQL database,

ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction) Read More »