سؤال

I want to use more than one database user to overcome the 7500 query database limit. How can I do that using wp-config.php?

I want all the users to have the same password.

هل كانت مفيدة؟

المحلول

Just set a random user in your wp-config.php for each request:

$db_users = array(
    'user_1',
    'user_2',
    'user_3',
);

define( 'DB_USER', $db_users[ array_rand( $db_users ) ] );
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top