Can I have multiple database users within WordPress?

WordPress Development Asked by Shady M Rasmy on January 6, 2022

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.

One Answer

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

$db_users = array(

define( 'DB_USER', $db_users[ array_rand( $db_users ) ] );

Answered by TheDeadMedic on January 6, 2022

Add your own answers!

Related Questions

Co-authors plus problems with query_post

1  Asked on October 30, 2021 by wallace-ferreira


wp_get_archives() not working for my custom post type

1  Asked on October 30, 2021 by best-dev-tutorials


Run Username SQL Query from WordPress Child Theme Functions File

1  Asked on October 30, 2021 by moa-andersen


Change wordpress admin home page

1  Asked on October 30, 2021 by bendict-mutua


How to move a post from one category to another

1  Asked on October 30, 2021 by sajeergraphix


Query custom post type custom meta key

1  Asked on October 30, 2021 by user1551496


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir