Jump to content

Recommended Posts

Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...