CREATE DATABASE test_jfg; CREATE DATABASE test_jfg2; CREATE TABLE test_jfg.test (a int unsigned PRIMARY KEY) ENGINE=InnoDB; RENAME TABLE test_jfg.test TO test_jfg2.test; SELECT REPLACE(path,'\\','/') path FROM INFORMATION_SCHEMA.INNODB_SYS_DATAFILES WHERE PATH LIKE '%test%'; path ./test_jfg2/test.ibd DROP DATABASE test_jfg; DROP DATABASE test_jfg2; CREATE DATABASE abc_def; CREATE DATABASE abc_def2; CREATE TABLE abc_def.test (a int unsigned PRIMARY KEY) ENGINE=InnoDB; RENAME TABLE abc_def.test TO abc_def2.test1; SELECT REPLACE(path,'\\','/') path FROM INFORMATION_SCHEMA.INNODB_SYS_DATAFILES WHERE PATH LIKE '%test%'; path ./abc_def2/test1.ibd DROP DATABASE abc_def; DROP DATABASE abc_def2;