Merge pull request #9102 from sminnee/doc-pdo

DOCS: Change default database connector.
This commit is contained in:
Robbie Averill 2019-07-01 11:17:41 +12:00 committed by GitHub
commit 0daed7b9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ Add or edit your `_ss_environment.php` configuration file. (See [Environment Man
<?php
// These four define set the database connection details.
define('SS_DATABASE_CLASS', 'MySQLPDODatabase');
define('SS_DATABASE_CLASS', 'MySQLDatabase');
define('SS_DATABASE_SERVER', 'db1.example.com');
define('SS_DATABASE_USERNAME', 'dbuser');

View File

@ -85,7 +85,7 @@ SilverStripe core environment variables are listed here, though you're free to d
| Name | Description |
| ---- | ----------- |
| `SS_DATABASE_CLASS` | The database class to use, MySQLPDODatabase, MySQLDatabase, MSSQLDatabase, etc. defaults to MySQLPDODatabase.|
| `SS_DATABASE_CLASS` | The database class to use, MySQLPDODatabase, MySQLDatabase, MSSQLDatabase, etc. defaults to MySQLDatabase.|
| `SS_DATABASE_SERVER`| The database server to use, defaulting to localhost.|
| `SS_DATABASE_USERNAME`| The database username (mandatory).|
| `SS_DATABASE_PASSWORD`| The database password (mandatory).|