I am trying to connect to a HeidiSQL db using php PDO on a linux mint 19.3 machine. I cannot. This is the code I am using:
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
try {
$conn = new PDO("mysql:host=$severname;dbname=$db", $user, $pass)...