Is there a way to find all postgresql and mysql databases on my system? (Perhaps using the find command).
If the database servers are running, ask them:
Just searching the filesystem for relational databases is not a trivial task.
On my system, the files for postgresql 8.4 are installed in:
where /etc contains a symbolic link to /var/lib.
You need sudo permissions to watch these directories.