marshalleto
02-05-02, 14:14
| Hi I am a novice Mysql user. I can use the mysqldump utitlity just fine on the command line to make a backup of my sql tables, but when I try to call it from a script I get a "Access denied for user: 'root@localhost' (Using password: YES)" error. What gives? my perl script which tries using the mysqldump utility looks like this: --------------------------------------------- #!/usr/bin/perl system ("mysqldump -u root -p=password -c --add-drop-table db_name > db_dump.dump"); ---------------------------------------------- When I try to execute the script from the command line or from CRON, I get the access denied error. But if I just type the same command on the command line it works great. Any help would be greatly appreciated. THANKS!! |