Web Hosting Talk







View Full Version : Mysql error with php script


Atif Munir
08-17-2002, 02:35 AM
Hi,
I am on Plesk2.0
I am running a php script which takes the backup of a remote database of Mysql. The script is fine as I have tested it on some other machine.On one of my servers it is giving the following errors.
<b>Warning</b>: Access denied for user: 'alid@15.25.23.4(Using password: YES) in <b>/home/gom/gm-Auto/automails/include/code/defs.php</b> on line <b>12</b><br />


Although I have defined some other IP address in the script but Its still taking its own ip for taking backup.
Thanks in advance.
Atif

bobcares
08-17-2002, 06:14 AM
Try localhost as the server.
i.e. alid@localhost..
Have a great day :)

regards
amar

Atif Munir
08-17-2002, 07:07 AM
Hi,
I want to take backup of some remote machine Not from the localhost.

Atif

digitalb
08-17-2002, 08:09 AM
MySQL cannot be used as remote...it is secure and will only accept access from the localhost/machine. Stops hackers...

You can make MySQL remote but it is generally not advised as it can let anyone access or corrupt your data.

Ask ur webmaster to check if it is set to remote.

why do you want to do this anyways?