473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connection problem using $link = mysql_connect

1 New Member
I want to host a web site using PHP-Mysql.

It run in local computer using wamp server. but when i try to host it in my web server it did not run properly. it shows the following error.

"Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test'@'72.52.186.53' (using password: YES) in /home/infinity/public_html/test/connection.php on line 2
Could not connect: Access denied for user 'test'@'72.52.186.53' (using password: YES)"

I use a php file named connection.php contain the following code.

Expand|Select|Wrap|Line Numbers
  1.  <?php
  2.     $link = mysql_connect('infinitymcict.com','test','test')
  3.         or die('Could not connect: ' . mysql_error());
  4.     mysql_select_db('niit') or die('Could not select database');    
  5.  
  6.     echo "Connected to Database..";
  7. ?> 
  8.  

Is there anybody tell me what the prob is?
May 11 '10 #1
1 1561
Markus
6,050 Recognized Expert Expert
Follow this trouble shooting article.
May 11 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1411
by: Dany | last post by:
Hi, everybody: How can I establish a connection using my modem in .NET? I want my application to initialize the modem, place a call and prepare all of the settings needed to create a TCP...
0
1411
by: Paradigm | last post by:
I am using Access 2K as a front end to MySQL running on a Linux server. I am having trouble connectiong to the server. MySQL control centre connects and I can connect using a DSN data source. But...
8
16214
by: ZRexRider | last post by:
Hi, I have an application that uses MS-SQL Linked tables. I have a utility routine that drops all links and re-establishes them. It works great when my connection string is a DSN connection...
5
1822
by: Ranier Dunno | last post by:
Hi, I'm writing a data layer, and would like all components to have a single place for retrieving a connection to the (SQL Server) database. Currently, I'm treating the connection as somewhat...
0
1367
by: Arthur | last post by:
Hi, I am trying to write a windows service in VC++.NET 2003, the task of this server is to detect the kind of internet connection and if there is a connection send some file and do something. ...
6
1523
by: kavithadevan | last post by:
Hi, I am trying to retriving some datas from the database.using submit button i am getting result but i inserted one submit image and i gave link to that image and then i run that script but its...
1
2038
by: rejoyce | last post by:
Hi Everyone, I just started to create new windows application in Visual Basic 2005, so i use the Data Source Configuration Wizard to add new data source connection. I choose the Microsoft Access...
1
1755
by: eemorris | last post by:
Hi, I'm trying to use an asp page to send data from a basic HTML form to an Access database. I'm using GoDaddy hosting (which apparently many people have issues with when it comes to this) and here...
2
3240
by: muddler | last post by:
I would like to connect to a remote sql server using a stored procedure. I had planned on using OPENQUERY( linked_server ,'query' ) to pull data from the remote server but this command does not...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.