When you have an error message "Unable to connect to the database:Could not connect to MySQL" during the Joomla Installation, this probably mean that you probably have provided wrong parameters in the Joomla Installation "configuration" panel.
Check the DB host name, db name, user name, password.
There are video in tutorial that show the installation of a slave site in which you have to specify the DB Connection and that highlight the point relative to the table prefix.
www.jms2win.com/media/joomla_multisites/...omlaInstall.swf.html
or
www.jms2win.com/media/joomla_multisites/..._tpl_master.swf.html
Remark: some hosting provider have sometime a specific interface to create the database and get the user name and password that have to be used during your Joomla Installation.