Open EMR 5.0 Crashed( MY SQL)

Hello Did anyone experiance having openemr 5.0 crash unable to start MySQlL/Apache crashes
Any suggestion ??
Thanks

hi @Sam99, could you share anything exciting in /var/log/apache2/error.log

Database server

Server: 127.0.0.1 via TCP/IP
Server type: MariaDB
Server version: 10.1.13-MariaDB - mariadb.org binary distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Web server

Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.20
Database client version: libmysql - mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
PHP extension: mysqli Documentation
PHP version: 5.6.20
phpMyAdmin

Version information: 4.5.1, latest stable version: 4.7.5
Documentation
Wiki
Official Homepage
Contribute
Get support
List of changes
A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 4.7.5, released on 2017-10-23.

This is what i got as erra
Thu Nov 16 07:41:51.457421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57541] PHP custom error: from openemr library/sql.inc - Unable to set up UTF8 encoding with mysql database: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 07:41:51.457421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57541] Unable to set strict sql setting: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 07:41:51.457421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57541] PHP Fatal error: Call to undefined function text() in C:\xampp\htdocs\openemr\library\sql.inc on line 517
[Thu Nov 16 08:00:48.117421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.90:63494] PHP Warning: mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.\r\n in C:\xampp\htdocs\openemr\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php on line 123
[Thu Nov 16 08:00:48.117421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.90:63494] PHP custom error: from openemr library/sql.inc - Unable to set up UTF8 encoding with mysql database: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 08:00:48.117421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.90:63494] Unable to set strict sql setting: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 08:00:48.117421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.90:63494] PHP Fatal error: Call to undefined function text() in C:\xampp\htdocs\openemr\library\sql.inc on line 517
[Thu Nov 16 09:14:16.048421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57818] PHP Warning: mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.\r\n in C:\xampp\htdocs\openemr\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php on line 123
[Thu Nov 16 09:14:16.048421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57818] PHP custom error: from openemr library/sql.inc - Unable to set up UTF8 encoding with mysql database: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 09:14:16.048421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57818] Unable to set strict sql setting: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 09:14:16.048421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:57818] PHP Fatal error: Call to undefined function text() in C:\xampp\htdocs\openemr\library\sql.inc on line 517
[Thu Nov 16 11:56:53.527421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:58250] PHP Warning: mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.\r\n in C:\xampp\htdocs\openemr\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php on line 123
[Thu Nov 16 11:56:53.527421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:58250] PHP custom error: from openemr library/sql.inc - Unable to set up UTF8 encoding with mysql database: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 11:56:53.527421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:58250] Unable to set strict sql setting: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 11:56:53.527421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.89:58250] PHP Fatal error: Call to undefined function text() in C:\xampp\htdocs\openemr\library\sql.inc on line 517
[Thu Nov 16 12:04:30.998421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.92:50808] PHP Warning: mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.\r\n in C:\xampp\htdocs\openemr\vendor\adodb\adodb-php\drivers\adodb-mysqli.inc.php on line 123
[Thu Nov 16 12:04:30.998421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.92:50808] PHP custom error: from openemr library/sql.inc - Unable to set up UTF8 encoding with mysql database: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 12:04:30.998421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.92:50808] Unable to set strict sql setting: No connection could be made because the target machine actively refused it.\r\n
[Thu Nov 16 12:04:30.998421 2017] [:error] [pid 1616:tid 1636] [client 192.168.1.92:50808] PHP Fatal error: Call to undefined function text() in C:\xampp\htdocs\openemr\library\sql.inc on line 517
[Thu Nov 16 12:19:06.438421 2017] [:error] [pid 1616:tid 1636] [client ::1:3166] SQL Error with statement:insert failed: insert into log (date, event,category, user, groupname, comments, patient_id, success, checksum,crt_user) values ( ‘2017-11-16 12:18:52’, ‘security-administration-select’, ‘Security’, ‘’,’’,‘U+S1auFQhc0jF8+JKaK7ko773lAsQCD+9QpELAuqBmc=’,‘0’,‘1’,’’,’’)–MySQL server has gone away==>C:\xampp\htdocs\openemr\library\log.inc at 781:sqlInsertClean_audit

thanks, maybe a firewall issue

Most likely firewall but to be safe might want to check mysql error log and also verify user/password/port is correct in both mysql config and sites/default/sqlconfig.php
edit: also ensure allow port(3306) in router (if local hosting) did not somehow get reset. It happens!