When I try to use SHOW FULL FIELDS FROM or some other SHOW COLUMNS syntax query I get this strange error message:
MariaDB [mysql]> show full fields from user;
ERROR 1036 (HY000): Table '/tmp/#sql_126_0.MAI' is read only
Tmp dir is present and has 777 permissions.
Changing tmp dir in my.cnf doesn't help.
Chowning that dir to mysql user doesn't help either.
Steps to reproduce:
- Install CentOS 7 into VM (or any sufficiently old kernel)
- Install Docker on CentOS 7 (so that we can use alpine)
- Create alpine-based image with MariaDB 10.1.28 (
apk add mysql mysql-client) or use readily available image - Run mysql container
docker run --name mariadb_container mariadb_image - Connect to mysql using
docker exec -ti mariadb_container mysql -A - Run
SHOW FULL FIELDS FROM some_tablequery
Any suggestions on how to trace that problem?