Welcome Guest, Not a member yet? Register   Sign In
Using the new Encryption library throws "MySQL server has gone away" error
#1

I have code that currently runs without error. When I introduce the "Encryption" library and call the encrypt or decrypt functions, the MySQL call  to update the ci_sessions table fail with the error "MySQL has gone away". Note: MySQL ssl is being used. Its seems like the openssl used in Encryption library is overwriting the mysqli key or chiper?

Does anyone have an history with this or ideas? Thanks

The Code is currently running on:

PHP 5.6
CI 3.1.6
MySQL 5.6


Here is the database.php setup

'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' =>FALSE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt'  => array(
    'ssl_key'  => $db_ssl_key,
    'ssl_cert'  => $db_ssl_cert,
    'ssl_ca'    => $db_ssl_ca,
),
'compress' => FALSE,
'stricton' =>FALSE,
Reply


Messages In This Thread
Using the new Encryption library throws "MySQL server has gone away" error - by asantoli - 02-26-2021, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB