@deepakdcc I’m currently using HyperDB on a site running 5.7.2. Could you share the critical error you’re getting?
@tchsup Here’s an example of explicitly defining the read and write values even though they are the defaults:
$wpdb->add_database(array(
'host' => DB_HOST, // If port is other than 3306, use host:port.
'user' => DB_USER,
'password' => DB_PASSWORD,
'name' => DB_NAME,
'read' => 1,
'write' => 1
));
I just came across this, specifically the line 685 issue.
I updated my configuration function to explicitly include the value for the write parameter even though I’m using the default and that seemed to fix the issue for me.