How can I keep my MySQL password safe?

As any PHP or Perl scripts are run under your own UID, and since only your UID can access your directory, your details should be safe if you store them in the ordinary way (in a PHP/Perl file which stores them as PHP/Perl configuration variables, as is standard in CMS systems, e.g. WordPress, Joomla, etc.).

Posted in: Questions about MySQL databases