Miri
Well-known member
I have been experiencing a few admin-side errors on my forum (Xenforo) for the past couple of days.
The error message is as follows:
I contacted my host and they suggested running the following query:
Here is their response regarding the query:
I would like to ask for your advice on whether it is safe to run this query on my database, and if so, would you recommend it?
In any case, what can I do to resolve the errors that are occurring?
Thank you
The error message is as follows:
Code:
Server error log
XF\Db\Exception: User 'my_databese' has exceeded the 'max_user_connections' resource (current value: 30) src/XF/Db/Mysqli/Adapter.php:165
Generated by: Unknown account Jan 19, 2023 at 6:17 AM
Code:
Stack trace
#0 src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 src/XF/Db/AbstractAdapter.php(62): XF\Db\Mysqli\Adapter->getConnection()
#2 src/XF/Db/Mysqli/Adapter.php(113): XF\Db\AbstractAdapter->connect()
#3 src/XF/Db/AbstractAdapter.php(518): XF\Db\Mysqli\Adapter->escapeString('addOnsComposer')
#4 src/XF/Db/AbstractAdapter.php(496): XF\Db\AbstractAdapter->quote('addOnsComposer')
#5 src/XF/DataRegistry.php(139): XF\Db\AbstractAdapter->quote(Array)
#6 src/XF/DataRegistry.php(84): XF\DataRegistry->readFromDb(Array, Array)
#7 src/XF/DataRegistry.php(228): XF\DataRegistry->get(Array)
#8 src/XF/App.php(1927): XF\DataRegistry->offsetGet('addOnsComposer')
#9 src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container))
#10 src/XF/App.php(2456): XF\Container->offsetGet('addon.composer')
#11 src/XF/App.php(2026): XF\App->setupAddOnComposerAutoload()
#12 src/XF/Pub/App.php(94): XF\App->setup(Array)
#13 src/XF.php(497): XF\Pub\App->setup(Array)
#14 css.php(8): XF::setupApp('XF\\Pub\\App', Array)
#15 {main}
Code:
Request state
array(4) {
["url"] => string(286) "/css.php?css=public%3Abb_code.less%2Cpublic%3Aeditor.less%2Cpublic%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Asimilar_threads.less%2Cpublic%3Astructured_list.less%2Cpublic%3Aextra.less&s=3&l=2&d=1674051399&k=cb528016790c4574f71b37cd28f01985a75b78a4"
["referrer"] => string(100) "URL"
["_GET"] => array(5) {
["css"] => string(179) "public:bb_code.less,public:editor.less,public:message.less,public:notices.less,public:share_controls.less,public:similar_threads.less,public:structured_list.less,public:extra.less"
["s"] => string(1) "3"
["l"] => string(1) "2"
["d"] => string(10) "1674051399"
["k"] => string(40) "cb528016790c4574f71b37cd28f01985a75b78a4"
}
["_POST"] => array(0) {
}
}
I contacted my host and they suggested running the following query:
Code:
mysql DB_NAME -u DB_USER -p’DB_PASS’ -e ‘ALTER TABLE `table_name` ENGINE=`INNODB`;’
Here is their response regarding the query:
This error may occur if the database uses the MyISAM engine which has a limit for connections. If the database gets/sends many requests, it is better to move to the InnoDB engine instead as it is more reliable for multiple connections. You can move to InnoDB by entering the following command in your Shell terminal:
I would like to ask for your advice on whether it is safe to run this query on my database, and if so, would you recommend it?
In any case, what can I do to resolve the errors that are occurring?
Thank you