Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR [User Error]: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory
- IN GET dev/build
- Line 159 in /Users/aurelienchappard/Documents/deefuse/Projets/deefuse/deefuse-compta/dev/framework/model/connect/PDOConnector.php
- Source
- ======
- 150: $options[PDO::ATTR_EMULATE_PREPARES] = true;
- 151: }
- 152:
- 153: // May throw a PDOException if fails
- 154: $this->pdoConnection = new PDO(
- 155: $driver.implode(';', $dsn),
- 156: empty($parameters['username']) ? '' : $parameters['username'],
- 157: empty($parameters['password']) ? '' : $parameters['password'],
- 158: $options
- * 159: );
- 160:
- 161: // Show selected DB if requested
- 162: if($this->pdoConnection && $selectDB && !empty($parameters['database'])) {
- 163: $this->databaseName = $parameters['database'];
- 164: }
- 165: }
- Trace
- =====
- PDO->__construct(mysql:host=localhost;charset=utf8,root,root,Array)
- PDOConnector.php:159
- PDOConnector->connect(Array)
- MySQLDatabase.php:35
- MySQLDatabase->connect(Array)
- DB.php:244
- DB::connect(<filtered>)
- cli-script.php:106
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement