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:8a386f8a-d148-b6d9-3e0c-4eb84afec54e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4E6:AB67D:29DB5CE:36F91DF:697D5B2B |
| html-safe-nonce | 4353a185cbe2604c205bf6de0f81feb2dafeb47afce6c86a2d3e980978c5d1ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEU2OkFCNjdEOjI5REI1Q0U6MzZGOTFERjo2OTdENUIyQiIsInZpc2l0b3JfaWQiOiI0MDg3MjQ2MTI2NTMxMzA0MjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 784d179aa33aeb4157f5b731314071df72bae3352690073ae1f89a1136869c7f |
| 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 | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width