How to add a MySQL password for XAMPP on OSX

By default an installation of XAMPP has no password which is not secure at all.