PHP, Heroku, ClearDB, MySQL Fix
- or -
Post a project like this1539
£10(approx. $13)
- Posted:
- Proposals: 3
- Remote
- #2670253
- Awarded
Description
Experience Level: Entry
Hi,
Im trying to connect my database to a MySQL database via Heroku and ClearDB,
Here is the error im getting,
"messages": [
"Connection Error: PDOException: SQLSTATE[HY000] [2002] No such file or directory in /app/v1/controller/db.php:22\nStack trace:\n#0 /app/v1/controller/db.php(22): PDO->__construct('mysql:host=; db...', NULL, NULL)\n#1 /app/v1/controller/users.php(12): DB::connectWriteDB()\n#2 {main}"
]
Please find attached the db.php file.
Cheers
Im trying to connect my database to a MySQL database via Heroku and ClearDB,
Here is the error im getting,
"messages": [
"Connection Error: PDOException: SQLSTATE[HY000] [2002] No such file or directory in /app/v1/controller/db.php:22\nStack trace:\n#0 /app/v1/controller/db.php(22): PDO->__construct('mysql:host=; db...', NULL, NULL)\n#1 /app/v1/controller/users.php(12): DB::connectWriteDB()\n#2 {main}"
]
Please find attached the db.php file.
Cheers
Ben S.
100% (36)Projects Completed
23
Freelancers worked with
23
Projects awarded
28%
Last project
7 Feb 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies