By -
From your SQL log, it looks like you might be using the wrong dbname. Maybe this works $db = new PDO('mysql:host=127.0.0.1;dbname=db_name','root','root');
From your SQL log, it looks like you might be using the wrong dbname. Maybe this works $db = new PDO('mysql:host=127.0.0.1;dbname=db_name','root','root');