| 
	
 | 
 Posted by Noodle on 09/08/06 14:37 
Hi, 
 
I want to dump out a database to the screen using mysqldump, like so... 
 
<?php 
  echo system('mysqldump -h localhost -u user -p password 
my_database'); 
?> 
 
However, it won't accept my password being passed in like this. Is this 
a mysql configuration problem? 
 
Normally, if I were to do this in a terminal window, I would type: 
'mysqldump -u user -p my_database', it would then prompt me for my 
password before performing the operation. 
 
Any suggestions on how this can be done? 
 
TIA. 
 
Noodle
 
  
Navigation:
[Reply to this message] 
 |