help install this plugin
-
My site have run with a db is
‘host’ => ‘localhost:9999’,
‘user’ => ‘root’,
‘password’ => ‘123456’,
‘name’ => ‘1’, <== database 1i have install hyperdb and copy db.php to wp-content, copy db-config to home dir
edit from line 217-237 on db-config.php with db 2 is$wpdb->add_database(array(
‘host’ => ‘localhost:9999’, // If port is othe\ than 3306, use host:port.
‘user’ => ‘root’,
‘password’ => ‘123456’,
‘name’ => ‘2’, <== database 2
));/**
* This adds the same server again, only this time it is configured as a slave.
* The last three parameters are set to the defaults but are shown for clarity.
*/
$wpdb->add_database(array(
‘host’ => ‘localhost:9999’, // If port is other than 3306, use host:port.
‘user’ => ‘root’,
‘password’ => ‘123456’,
‘name’ => ‘2’,
‘write’ => 0,
‘read’ => 1,
‘dataset’ => ‘global’,
‘timeout’ => 0.2,
));i have receive report error is
Warning: mysqli_real_connect(): MySQL server has gone away in C:\xampp\htdocs\1\wp-content\db.php on line 1269Warning: mysqli_real_connect(): Error while reading greeting packet. PID=17836 in C:\xampp\htdocs\1\wp-content\db.php on line 1269
Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in C:\xampp\htdocs\1\wp-content\db.php on line 1269
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\1\wp-content\db.php on line 1269
in wp-config i have add
define(‘DB_NAME’, ‘2’);pls help
thanks you
- The topic ‘help install this plugin’ is closed to new replies.