<?php
$pdo = new \PDO('mysql:host=php;dbname=phpmyshop_db', 'root', '', []);
$query = "SELECT * FROM products";
$pdo->query($query)->fetchAll();
?>
Time Id Command Argument
180609 13:21:51 1 Connect root@localhost on phpmyshop_db
1 Query SELECT * FROM products
1 Quit
180609 13:21:52 2 Connect root@localhost on phpmyshop_db
2 Quit