P粉5660487902023-08-18 00:11:53
I usually do this in bash (it might be possible to use SQL, but I'm not sure which table)
table_names=`echo "show tables"|mysql database_name -q -s|grep -v "show tables"` for table in $table_names do echo $table mysqldump database_name $table |grep file_id done;
Then you will see something related to file_id in each table.