Hi all,
I hope someone here can help me with this.
I have spent days, search google, and all the questions about "Can't connection to local MySQL server though socket"
I can tell you, that the mysql server is working fine.
I'm using jmeter to do a test of 300 users to my server.
when I do a test for 150 users, I get no error, above that, then I get errors.
I have logged into mysql while I'm running the testing, to see if i can connect, and I can.
I can also confirm that i'm using another machine and accessing the website, and it does show the web pages properly.
I also do the same test, but with phpbb3 forum's software, and I get no errors with that... so I believe its the website that isn't done properly....
for some reason, this error is intermittent:
[Mon Jul 19 15:12:45 2010] [error] [client 66.11.78.225] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /www/pplsnet.com/mysql.php on line 6
NOW, I install lighttpd, and I run the same tests, and I don't get these mysql errors....
could someone point me to what might be the problem?
I will provide snipts of the code below:
http://www.pastebin.ca/1903882
Can't connect to local mysql: apache error, lighttpd works!
Moderator: General Moderators
-
technobuddha
- Forum Newbie
- Posts: 1
- Joined: Mon Jul 19, 2010 2:05 pm