Why is throwing an exception when creating an instance of PDO?

When you instantiate a PDO is throwing an exception : "could not find driver".
Code:
class Database
{
 private $host=DB_HOST;
 private $user=DB_USER;
 private $pass=DB_PASS;
 private $dbname=DB_NAME;

 private $dbh; //Database handler (for PDO)
 private $stmt;
 private $error;
 public function __construct()
{
$dsn='musql:host='.$this->host.';dbname='.$this->dbname;
$options=[PDO::ATTR_PERSISTENT=>true,PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION];

try
{
 $this->dbh=new PDO($dsn,$this->user,$this->pass,$options);

}
 catch (PDOException $e)
{
$this->error=$e->getMessage();
 echo $this->error;
}
}
 }

5a73629d0be96732726236.png
June 8th 19 at 16:50
1 answer
June 8th 19 at 16:52
Solution
dsn line curve?

$dsn='musql:

// a database, there is mysql

Find more questions by tags PHP PDOPHP