As you can see in the picture, when I use select * from users, it tells me table doesn't exist. However, we can see the table exists by the show tables command.
Besides, I can see the .ibd and .frm file exists in the mysql data dictionary. This happens after we restarted the server, we use docker swarm to deploy our services and nas to mount the data
services: mysql: image: dockerhub.datagrand.com/idps/mysql:patest restart: always volumes: - ./data/mysql/data:/var/lib/mysql After we restart our server, we use mount -t command to remount the data. Anyone knows I can resolve this?
