Cloned site not connecting to database – MAMP

Did you check if the table prefixe in wp-config is same as per your database..

To check the table prefix of your database go to phpmyadmin.
Click on your database and expand it If you notice in following image , you will find out that all the table have prefix “wp_” .. so that means in your wp-config this should be the setting

$table_prefix = ‘wp_’;

else if you see some thing else in phpmyadmin , then you can replace wp_ in above setting as per your database

enter image description here

Please let me know if this fixes your problem