Database Setup Required

Tonic Sol-fa Repository Gateway

!

PDO Connection Refused

SQLSTATE[HY000] [1040] Too many connections

Deployment & Resolution Steps

1
Create a MySQL Database

Login to your hosting CPanel or management portal. Go to MySQL Databases and create a new database (e.g., choirscript_db) and user, then assign all privileges to the user.

2
Upload the SQL Schema

Launch phpMyAdmin, click on your newly created database, and head to the Import tab. Choose the schema.sql file included in this distribution to seed original hymns and databases.

3
Update config.php Credentials

Open the config.php file using your server's FTP editor or File Manager, and update the values at the top of the file:

// Present connection state:
$host = 'localhost';
$db = 'choralpl_choirscript';
$user = 'choralpl_choirscripts';
$pass = '***';