Add independent connections for reading and writing to the database in WordPress

Use HyperDB

  • An open source DB mechanism plugin that supports replication, failover, load balancing, and partitioning.

Link – https://github.com/Automattic/HyperDB

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)