Geuis Posted April 21, 2006 Posted April 21, 2006 I have another website that's not hosted from TCH. I'm trying to run a script on that website that connects to a database I have on our TCH account. Instead of 'localhost' I used server52.totalchoicehosting.com. Its giving me this error, w/ our username blanked of course. Warning: mysql_connect(): Access denied for user '******'@'64.49.***.***' (using password: YES) in /index.php on line 278 Could not connect: Access denied for user '********'@'64.49.***.***' (using password: YES) How can I do this? Quote
TCH-Don Posted April 21, 2006 Posted April 21, 2006 As I see it you need to give access to the remote site in your cpanel > MySQL Databases, I did find a post by TCH-David that may help. Quote
j2k4b Posted April 22, 2006 Posted April 22, 2006 Not that I need this information but it was nice to learn something. Quote
TCH-Tom Posted April 22, 2006 Posted April 22, 2006 Yes as Don has suggested, you need to add the IP from which you are trying to connect to the 'Access Hosts' list . Quote
anand4linux Posted April 22, 2006 Posted April 22, 2006 I think Geuis wants the script to access the remote mysql database, not himself from his local machine. In that case he needs to grant permission for the "mysqluser" to access the database from the "ip of the server which has the php script" something like this... mysql> grant all privileges on dbname.* to 'mysqluser'@'<ipaddress or servername' identified by 'password' with grant option; Anand S Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.