My Laravel 5.7 website has been experiencing a few problems
I had an interesting observation on my CentOS machine, running PHP7.2x, Apache 2.4.6. After changing the host in my CodeIgniter config from '127.0.0.1' to 'localhost' the problem disappeared.
So change:
'hostname' => '127.0.0.1'
to 'hostname' => 'localhost'
I reverted the configuration a couple of times to double check, but somehow this does the trick all the time...