lsof works under linux and MacOS X and will help you figure out what files are open.
lsof | grep ‘mysqld’