musql_connection

musql_connection

Postby sistmates » Mon Feb 16, 2009 8:20 am

I used this code to connect to databse in the athost.net.

mysql_connect("athost.net","anticlick.athost.net","mypassword");

When executing this script, The follwing error shows in the output.


Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'athost.net' (61) in .....


what is the problem?
sistmates
 
Posts: 1
Joined: Mon Feb 16, 2009 8:11 am

Re: musql_connection error

Postby Support (John) » Mon Feb 16, 2009 9:26 am

You should use following:

mysql_connect('localhost', 'mysql_user_login', 'mysql_password');

MySQL User Login is placed on top right conner of your account home page.

MySQL User Login: .....
MySQL DataBase Name: .....
Support (John)
 
Posts: 34
Joined: Tue Mar 13, 2007 2:56 am


Return to MySQL Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron