You can change the MySQL connection information inside the file “system/data/autoconfig.php”.
system/data/autoconfig.php
Simply open the file in a text or code editor and make the appropriate changes.