Menu
Hi people
I have a php application which successfully connects to mysql and interacts with the database.
I am using apache as my web server.
I would like to invoke my code from the command shell, using php.exe like so:
c:phpphp.exe c:script.php
in script.php I am using mysql_connect to connect to the database.
I get the following error:
Access denied for user ‘root’@’localhost’ (using password: YES)
Note that the same script is working perfectly when invoked via the web server…
what do I need to do in order to make my script work from the command line?
regards