Error connected to mysql(database)

Hi Team,

I am new in agile toolKit and using lastest version.
I am trying to connect with mysql database. I receiving an error “PDOException: SQLSTATE[HY000] [2002] No such file or directory”. What I need to do to fix this error?

require ‘vendor/autoload.php’;

$app = new \atk4\ui\App(‘Invoice Application’);
$app -> initLayout(‘Centered’);

//$db = $app->dbConnect(‘mysql://root:@localhost/invoice_db’);
$dsn = ‘mysql:host=localhost;port=3306;dbname=invoicedb’;
$db = new \atk4\data\Persistence_SQL($dsn, ‘root’, ‘12345678’);

Even Mysql is ON and all credentials is fine…

Hi and welcome.

It looks that PHP lacks pro driver for MySQL. You can google for solution, it’s not ATK related.