Sun 1 ASP Issue after Linox box reinstall

Hi all,

We have had Sun One ASP on our Linux box and we are running the following:

RH 8

Kernal 2.4.20

Apache Server 2.0.43

We lost our Linux server last week due to a hacker and our Linux guru reinstalled it yesterday. He has copied across most of the ASP configs and it looks like the ASP server is running however all of our ASP pages are experiencing the following error:

Error Type:

Sun ONE ASP JavaScript runtime (0x80004005)

006~SQLState: S Native Error Code: 2002 [TCX][MyODBC]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

If anyone can help us with this it would be greatly appreciated!

- Dave

[699 byte] By [Dave-Tabb] at [2007-11-26 11:47:52]
# 1
Simple search for /tmp/mysql.sock on the forum and read one of the first two postings listed.But I've reproduced it hereln -s /var/lib/mysql/mysql.sock /tmp/mysql.sockYou will need to change the first file if yours is in a different location.Duncan
Duncan_Berriman at 2007-7-7 11:59:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
Duncan: excellent works now, we were flat out yeterday so i didn't bother checking the forums first, yes i know I was just being lazy. - Dave
DaveTabb at 2007-7-7 11:59:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
Hi i have the same problem and have triedln -s /var/lib/mysql/mysql.sock /tmp/mysql.sockit works, but every know and again it happens again and i have to repeat the command. Is there a more permenant solution to this problemthanks
djrobo14 at 2007-7-7 11:59:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
Yes, we need also more permenant solution.someone?kind regards,bram
bram@ at 2007-7-7 11:59:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 5

I'd suggest you put it in the mysql startup file

/etc/init.d/mysql

in the start section.

That was every time you start mysql it will create the link if it does not exist (you can even code it to only create it if its not there to save getting an error). That should fix the problem I think.

Duncan

Duncan_Berriman at 2007-7-7 11:59:42 > top of Java-index,Web & Directory Servers,Web Servers...