]> granicus.if.org Git - apache/commitdiff
Use a better example for a connection string (one with both username and password)
authorDaniel Gruno <humbedooh@apache.org>
Fri, 13 Dec 2013 10:49:35 +0000 (10:49 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 13 Dec 2013 10:49:35 +0000 (10:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1550683 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml

index f357ab9031953c09217dd3e13e4bb1de4498f32f..2ddf304347981466cbee26711eafe945f46e55e5 100644 (file)
@@ -1103,7 +1103,7 @@ end
     <highlight language="lua">
 function handle(r)
     -- Acquire a database handle
-    local database, err = r:dbacquire("mysql", "server=localhost,user=root,dbname=mydb")
+    local database, err = r:dbacquire("mysql", "server=localhost,user=someuser,password=somepass,dbname=mydb")
     if not err then
         -- Select some information from it
         local results, err = database:select(r, "SELECT `name`, `age` FROM `people` WHERE 1")