How to change the collation for MySQL database to UTF-8?

Changing the collation for all tables in a MySQL database can be time consuming depending on how many tables you have.  That’s why we recommend using the following PHP script for changing the collation for all tables at a time: <?php $db = mysql_connect(‘localhost’,’DBUserName’,’DBPassword’); if(!$db) echo "Cannot connect to the...