From: Daniel Gruno Date: Fri, 13 Dec 2013 10:49:35 +0000 (+0000) Subject: Use a better example for a connection string (one with both username and password) X-Git-Tag: 2.4.8~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f0ea362a85ca9781dfd727ff8f9ea576b3a2ede;p=apache Use a better example for a connection string (one with both username and password) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1550683 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index f357ab9031..2ddf304347 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -1103,7 +1103,7 @@ end 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")