You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2013/01/15 11:43:45 UTC
svn commit: r1433346 - /httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Author: humbedooh
Date: Tue Jan 15 10:43:44 2013
New Revision: 1433346
URL: http://svn.apache.org/viewvc?rev=1433346&view=rev
Log:
fix mysql connection string in example
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml?rev=1433346&r1=1433345&r2=1433346&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Tue Jan 15 10:43:44 2013
@@ -896,7 +896,7 @@ end
<highlight language="lua">
function handler(r)
-- Acquire a database handle
- local database, err = r:dbacquire("mysql", "server=localhost&user=root&database=mydb")
+ local database, err = r:dbacquire("mysql", "server=localhost,user=root,dbname=mydb")
if not err then
-- Select some information from it
local results, err = database:select(r, "SELECT `name`, `age` FROM `people` WHERE 1")