In Webasyst, the database connection is configured in wa-config/db.php file
Open this file and find the following code.
'host' => 'servername',
'port' => false,
'user' => 'username',
'password' => 'password',
'database' => 'database_name',
'type' => 'mysql',