OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d8f70
)
run_mysql_command: use --no-defaults instead of --defaults-file
author
scribu
<mail@scribu.net>
Thu, 30 May 2013 14:26:45 +0000
(17:26 +0300)
committer
scribu
<mail@scribu.net>
Sun, 2 Jun 2013 19:15:42 +0000
(22:15 +0300)
php/utils.php
patch
|
blob
|
history
diff --git
a/php/utils.php
b/php/utils.php
index
5c4da77
..
7d3fe7a
100644
(file)
--- a/
php/utils.php
+++ b/
php/utils.php
@@
-404,7
+404,7
@@
function run_mysql_query( $query, $args ) {
function run_mysql_command( $cmd, $arg_str, $pass ) {
$old_val = getenv( 'MYSQL_PWD' );
- $final_cmd = "$cmd --
defaults-file=/dev/null
$arg_str";
+ $final_cmd = "$cmd --
no-defaults
$arg_str";
putenv( 'MYSQL_PWD=' . $pass );
$r = proc_close( proc_open( $final_cmd, array( STDIN, STDOUT, STDERR ), $pipes ) );