We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5d16f4 commit 8498abcCopy full SHA for 8498abc
README.md
@@ -18,9 +18,8 @@ Here a few things to keep in mind:
18
### Initialization
19
20
```PHP
21
-$pdo = new PDO('mysql:host=127.0.0.1;dbname=test', 'root', '');
+$pdo = new PDO('mysql:host=127.0.0.1;dbname=test;charset=utf8', 'root', '');
22
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
23
-$pdo->exec('SET NAMES "utf8"');
24
25
$mysql = new MySQL($pdo);
26
$mysql->getAliasRegistry()->add('textprefix', 'testdb.test__');
0 commit comments