Re: reload mysql
| From: | Brian Clark | Date: | Fri, 05 Jan 2001 21:22:05 +0000 |
| Subject: | Re: reload mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32942@lists.php.net to get a copy of this message | ||
Hello Jason,
(JJ == "Jason Jacobs") jason@factory7.com writes:
JJ> Hello again. I want to be able to reload the mysql server after adding
JJ> users to the database. I tried it using exec(), but it doesn't seem to be
JJ> doing the job...
JJ> $didexec = exec("mysqladmin reload -u user -p pword");
Is the path to mysladmin in the PATH of the user that the webserver is
running as?
Try using the full path to mysqladmin and see if it works.
JJ> if (!isset($didexec)){
JJ> echo "unable to reload mysql server...you may need to go in through
JJ> telnet";
JJ> }//end if
-Brian