summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-02-28 12:25:11 +0000
committerJamie Matthews <[email protected]>2010-02-28 12:25:11 +0000
commit62b0a1f5aa604c01c4ca8f90144ca960fc5567c6 (patch)
tree022a6e4f4fdda81bf1107753de2811270a499da1 /README.markdown
parent7db2c527b406fcc86f132d630f55b31ed6226ee0 (diff)
Added MySQL connection example
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index a7e05da..88622bd 100644
--- a/README.markdown
+++ b/README.markdown
@@ -186,7 +186,11 @@ Other than setting the DSN string for the database connection (see above), the `
Settings: `username` and `password`
-Some database adapters (such as MySQL) require a username and password to be supplied separately to the DSN string. These settings allow you to provide these values.
+Some database adapters (such as MySQL) require a username and password to be supplied separately to the DSN string. These settings allow you to provide these values. A typical MySQL connection setup might look like this:
+
+ ORM::configure('mysql:host=localhost;dbname=my_database');
+ ORM::configure('username', 'database_user');
+ ORM::configure('password', 'top_secret');
#### PDO Error Mode ####