"MySQL adapter mysqli is not available" error
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
"MySQL adapter mysqli is not available" error
Recently I notice a weird problem on my website: sometimes ( about once per week), it will crush, only show blank page with one line of message:
After reboot, the Joomla website will work again.
So, it is very difficult to understand. I did not change any configuration or install any new software during this solution, just reboot the server, then Joomla can work again.
One thing special is: I do not use the default PHP installed by VestaCP, I use the PHP 5.6 installed byMulti PHP Selector for VestaCP from skamasle.
Could you please tell me why sometimes my Joomla can not connect to MySQLi ? Why this can be solved by reboot the server? How to fix it for ever?
Thank you.
Then I login to server via Xshell, and use this command:Error displaying the error page: Application Instantiation Error: The MySQL adapter mysqli is not available
Code: Select all
# reboot
So, it is very difficult to understand. I did not change any configuration or install any new software during this solution, just reboot the server, then Joomla can work again.
One thing special is: I do not use the default PHP installed by VestaCP, I use the PHP 5.6 installed byMulti PHP Selector for VestaCP from skamasle.
Could you please tell me why sometimes my Joomla can not connect to MySQLi ? Why this can be solved by reboot the server? How to fix it for ever?
Thank you.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: "MySQL adapter mysqli is not available" error
For the love of god please always mention your
1) OS and Distro version
2) Server specs - RAM / Cores / HDD Space
For the problem... I think you are running out of memory for MySQL. When the problem occurs, please check if your MySQL is working. Restart MySQL and check if the website comes up again.
1) OS and Distro version
2) Server specs - RAM / Cores / HDD Space
For the problem... I think you are running out of memory for MySQL. When the problem occurs, please check if your MySQL is working. Restart MySQL and check if the website comes up again.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: "MySQL adapter mysqli is not available" error
Thank you for helping me.
My OS: CentOS 7 64-bit
what is Distro ?
Server Specs: 4GB memory / Single core / HDD space 100GB
When I check memory with following command:
Maybe these problems are caused by extra PHP version 5.6.21 ? This PHP is not installed by VestaCP, it was installed by skamasle's "multi-php selector" script.
My OS: CentOS 7 64-bit
what is Distro ?
Server Specs: 4GB memory / Single core / HDD space 100GB
When I check memory with following command:
Code: Select all
# free -m
total used free shared buff/cache available
Mem: 3791 3045 235 58 509 465
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: "MySQL adapter mysqli is not available" error
Did you do as I said ?
Please follow many such threads to resolve your issue, there is no magic recipe I'm afraid.
Also install htop and check memory usage... You are hitting memory limit as you see in free -m. So the most likely cause is MySQL running out of memory.When the problem occurs, please check if your MySQL is working. Restart MySQL and check if the website comes up again.
Please follow many such threads to resolve your issue, there is no magic recipe I'm afraid.
Re: "MySQL adapter mysqli is not available" error
Hi
I think you need tuning your fastcgi, if you use php-selector it run whit fastcgi, if you dont configure it, fastcgi can open a lot of child processes and you can easy run out of ram.
I get this problem whit a lot of servers when using vesta whit fastcig, some changes on configuration may solve this problem.
I think you need tuning your fastcgi, if you use php-selector it run whit fastcgi, if you dont configure it, fastcgi can open a lot of child processes and you can easy run out of ram.
I get this problem whit a lot of servers when using vesta whit fastcig, some changes on configuration may solve this problem.