>how can I retreive the path to a mysql database. I need to use it as a
string in my program to find image files that are stored in the same
directory?
I don't believe that MySQL guarantees anything if you stick a bunch
of extra files in a directory used for a database. At best, you'd
slow down operations like "show tables" a lot. Put your image files
elsewhere.
Gordon L. Burditt