I am trying to remotely connect to MySQL server online from my local machine, but I am getting the following error:
Warning: PDO::__construct(): The server r
I got this problem when running bitbucket pipelines with laravel 5.6 and default mysql database (set is services:).
solution was to use older version of mysql
definitions: services: mysql: image: mysql:5.6
PS: it was PHP 7.1