Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
koopa committed Apr 27, 2012
1 parent 920ddf6 commit 874933d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -43,14 +43,11 @@ Usage:

By default, mysql-proxy listens on :4040.

**NB: The hostname will always be localhost!**
**NB: By default the hostname in the script will always be set to 'localhost' since you are connecting over the proxy and the proxy connects locally!**

To connection from the shell to test, use:
To start a connection from the shell to test, use:

mysql -u username -p --host=127.0.0.1 --port=4040

When using a remote proxy, simply replace `127.0.0.1` with the correct remote address.




2 changes: 1 addition & 1 deletion mysql-proxy-log-error-queries.lua
Expand Up @@ -22,7 +22,7 @@ end
function insert_query(err_t, err_n, err_m)
local query = "INSERT INTO `somedb`.`mysql_error` " ..
"(`date`, `err_num`,`err_type`, `err_message`, `problem_query`, `conn_id`)" ..
"VALUES( NOW(), " ..
" VALUES ( NOW(), " ..
err_n .. "," .. "\"" ..
err_t .."\"" .. "," .. "\"" ..
err_m .. "\"" .. "," ..
Expand Down

0 comments on commit 874933d

Please sign in to comment.