From: Daniel Gruno Date: Fri, 13 Dec 2013 10:48:09 +0000 (+0000) Subject: Use a better example for a connection string (one with both username and password) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76ba77f673099c29a0789919181319034119a865;p=thirdparty%2Fapache%2Fhttpd.git 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/trunk@1550682 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index f357ab90319..2ddf3043479 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")