I got an error.

Error Code:

Warning: Invalid argument supplied for foreach() in /home/touchcpa/public_html/wp-content/db.php on line 164
Fatal error: Call to undefined method m_wpdb::handle_error_connecting() in /home/touchcpa/public_html/wp-content/db.php on line 223

Here's my setting...


define ('DB_SCALING', '16');
add_dc_ip('', 'dc1');

add_db_server('global', 'dc1', 1, 1,'','', 'andytsai_nrg_global', 'user', 'pass');
add_db_server('0', 'dc1', 1, 1,'','', 'andytsai_nrg_0', 'user', 'pass');
add_db_server('1', 'dc1', 1, 1,'','', 'andytsai_nrg_1', 'user', 'pass');


$dbname = "andytsai_nrg_";
$blog_table_prefix = 'wpmu_';
$newdb_prefix = 'andytsai_nrg_';

$dbhost = 'localhost';
$dbuname = 'user';
$dbpass = 'pass';

$db_scaling = '16';

I don't understand where's wrong.
Could anyone help me to solve this problem?
Or you have the same problem.
Thanks a lot.