$conn = new PDO("mysql:host=localhost", "root", "mypassword"); $conn->exec(команда_sql);