Title: PDO : Uncaught PDO exception: could not find driver · Issue #65 · stackery/php-lambda-layer · GitHub
Open Graph Title: PDO : Uncaught PDO exception: could not find driver · Issue #65 · stackery/php-lambda-layer
X Title: PDO : Uncaught PDO exception: could not find driver · Issue #65 · stackery/php-lambda-layer
Description: I used this layer to create a PHP lambda API. I then tried to create a PDO and connect it to a MySQL database. I got the following error "Uncaught PDOException: could not find driver in /var/task/index.php" My php.ini file contains the f...
Open Graph Description: I used this layer to create a PHP lambda API. I then tried to create a PDO and connect it to a MySQL database. I got the following error "Uncaught PDOException: could not find driver in /var/task/i...
X Description: I used this layer to create a PHP lambda API. I then tried to create a PDO and connect it to a MySQL database. I got the following error "Uncaught PDOException: could not find driver in /var/t...
Opengraph URL: https://github.com/stackery/php-lambda-layer/issues/65
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PDO : Uncaught PDO exception: could not find driver","articleBody":"I used this layer to create a PHP lambda API. I then tried to create a PDO and connect it to a MySQL database. I got the following error\r\n\"Uncaught PDOException: could not find driver in /var/task/index.php\"\r\n\r\nMy php.ini file contains the following:\r\nextension=json.so\r\nextension=mysql.so\r\nextension=pdo_mysql.so\r\nextension=pdo.so\r\nextension=php_pdo_mysql.dll\r\nextension=pdo_mysql.dll\r\n\r\nHere is my index.php code for creating the DB\r\n $conn = null;\r\n\r\n $conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name, $username, $password);\r\n $conn-\u003esetAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);","author":{"url":"https://github.com/StephenKirwin","@type":"Person","name":"StephenKirwin"},"datePublished":"2020-06-29T17:14:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/65/php-lambda-layer/issues/65"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cef85b1d-3950-e732-f65f-dcfce7da5a93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6B2:292DB4:6C1522:941679:6980ADF3 |
| html-safe-nonce | 8a99f4f0db12b894e3ba9ff7f7e9cdda78b286bdb2c8e5685312b147b9949c1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkIyOjI5MkRCNDo2QzE1MjI6OTQxNjc5OjY5ODBBREYzIiwidmlzaXRvcl9pZCI6IjI5OTg4MTY3Njg1MDk2NTI0NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | af7218ac5f4c5e76496d109c232463656924785f828d2c5f2913d1cd05bace21 |
| hovercard-subject-tag | issue:647537811 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackery/php-lambda-layer/65/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f479731efcc4b05f4e9c7cc78cdec1c20ad2c4f31d7b2e2e31dda7750d7e89c/stackery/php-lambda-layer/issues/65 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f479731efcc4b05f4e9c7cc78cdec1c20ad2c4f31d7b2e2e31dda7750d7e89c/stackery/php-lambda-layer/issues/65 |
| og:image:alt | I used this layer to create a PHP lambda API. I then tried to create a PDO and connect it to a MySQL database. I got the following error "Uncaught PDOException: could not find driver in /var/task/i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StephenKirwin |
| hostname | github.com |
| expected-hostname | github.com |
| None | d5070894b88d5cf03785c677c23c659b0431dfc2e6df2f35e35f2e0de9ceb94a |
| turbo-cache-control | no-preview |
| go-import | github.com/stackery/php-lambda-layer git https://github.com/stackery/php-lambda-layer.git |
| octolytics-dimension-user_id | 25157813 |
| octolytics-dimension-user_login | stackery |
| octolytics-dimension-repository_id | 156885130 |
| octolytics-dimension-repository_nwo | stackery/php-lambda-layer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156885130 |
| octolytics-dimension-repository_network_root_nwo | stackery/php-lambda-layer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 821a5a2664fd1c2441fb3caded98e0f525bf913f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width