PrestaShop Change Database Name
To change database name, user name and password on PrestaShop 1.7 or later, edit file
./app/config/parameters.php
Once this is done, you need to login to PrestaShop backend and clear cache.
How to Clear Cache in PrestaShop
For older versions, edit
config/settings.inc.php
See PrestaShop