Re: mysql_connect
| From: | raditha dissanayake | Date: | Thu, 04 Nov 2004 07:04:42 +0000 |
| Subject: | Re: mysql_connect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201128@lists.php.net to get a copy of this message | ||
Ben Miller wrote:
Guess that would have been helpful. Warning: mysql_connect(): Access denied for user: 'username@kst.ksofttech.com' (Using password: YES) in /home/virtual/site2/fst/var/www/html/test/global.php on line 74 Couldn't connect to server. That does not mean that the $host is being replaced by localhost as indicated in your first message. Your grant statement should have been for 'username@kst.ksofttech.com' not just for 'username' as it probably was. If you need more help beyond that you will need to ask in the mysql mailing list.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.I am having trouble connecting to a database on another server. I havethefollowing for the connection, but it seems to be overriding the value for the $host variable, and replacing it with localhost. Anyone got anyideas?