473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

A link to the server could not be established in...


Folks,

I'm writing an application on a LAMPhp server... Everything has been fine up
until now though I have only got about 6months of MySQL behind me.

Today... my server has started to report the following while trying to do a
mysql_query() select from an empty table...

Warning: mysql_query(): Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2) in
/data/www/websites/mydomain.com/www/include2/standard/MySQL.fip on line 139

Warning: mysql_query(): A link to the server could not be established in
/data/www/websites/mydomain.com/www/include2/standard/MySQL.fip on line 139
Two things though:
1) I have output the query to the browser, then cut and pasted it in to the
mysql command line and it executes, returning no errors, and zero rows.
2) I can connect both from the server, and my client machines to MySQL...

So where could my problem be? I'm the only user on the box...

anybody got any ideas? My code at line 139 works fine as the same group of
functions work in my other coded projects so I know it can't be that...

Thanks in advance,
randell d.
Jul 19 '05 #1
0 1067

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: matchbx | last post by:
I hope someone can help. I am currently running Windows Server 2000 with IIS 5.0. I have all of the latest patches and updates from Microsoft. When trying to create a new ASP.NET Application I...
9
by: Reply-Via-Newsgroup | last post by:
Folks, I'm writing an application on a LAMPhp server... Everything has been fine up until now though I have only got about 6months of MySQL behind me. Today... my server has started to report...
26
by: Harrie | last post by:
Hi, After Brian mentioned the use for <link rel=..> for navigational purposes in another thread, I've been looking into it and found that HTML 3.2 has two other recognized link types than HTML...
0
by: Ross M | last post by:
Dear Microsoft, I m getting this error message, on every SECOND attempt to access a web service on a foreign PC. I am using .net framework 2 beta 2 with Visual Web developer 2. Below is the...
9
by: craig.overton | last post by:
All, I am currently developing an FTP class in VB.NET. It's kid tested, mother approved when trying to access an FTP Server on a Windows box meaning I can connect, run commands, upload and...
3
by: matt.delvecchio | last post by:
i saw a similar post from last year, but i didnt see any clear solution. the error message: "A connection was successfully established with the server, but then an error occurred during the...
7
by: Kurda Yon | last post by:
Hi everybody, I cannot understand the following thinks. The last line of the fillowing code produces a message about mistake (not a valid MySQL- Link resource): $link = mysql_connect(...
1
by: =?Utf-8?B?Y2hhaXJtYW4=?= | last post by:
I am trying to set up a Report Server to publish reports that I have created in Visual Studio 2005. I have been able to get it up and running and I am able to access reports via the web and set up...
11
by: Kurda Yon | last post by:
Hi, I got this warning: mysql_query(): 4 is not a valid MySQL-Link resource. The line which cause this warning is: mysql_query("insert into $tablename (id,priority) values('$id', '0.00')",...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...

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.