• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#2
What version of CodeIgniter, PHP and MySQLi are you trying to run it on now?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.