Jump to content
The Uniform Server Community
ricktza

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10013) in Z:\www\gangster\includes\db_connect.php on

Recommended Posts

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10013) in Z:\www\gangster\includes\db_connect.php on line 6

mysql settin wrong

 

 

server works fine for a few hours or so then i get that error above .... i have had the problem for awhile now and it becoming a pain... thats the error message everyone else get on my side with the unform server running it just cannot connect to anyweb page untill i restart.

 

after a lil while the server becomes workin agian and then it does it again ...

 

can anyone help me or is it one of my scripts causing the problem...

 

i found its since i have put datasets from dreamweaver on there??? i think that mite be the problem but i need a second opinion

 

also if that is the problem can anyone give me a script to auto update on my site with out refrshing becasue that the only reason i use them..

 

could it be my connection file???

 

its rather old

Share this post


Link to post
Share on other sites

my guess:

when mysql stops responding temporarly, you might have the folowing problems:

you have a script that leads mysql to do something for a long period of time (try running the script with the errors after server restart a few times, and see if it causes that error),

another program is using the mysql ports temporarly,

or you have a memory problem: ram full, harddrive full (no pagefile space), ram broken(pc startup check would tell you unless it is disabled).

Share this post


Link to post
Share on other sites

okay thanks .... my mate in college said the same sorta thing... apart from the port side lol. the ram is still quite new. the cpu does go to 100% once a few people connect witch oviously is the script witch would make it not respond... does anyone know a way to make a simple ajax script to replace mine ??

Share this post


Link to post
Share on other sites

check the wikipedia entry (has a clean,small and good sample ready to use with all browsers) or use jquery+pquery or any other javascript framework+your own handling.

 

usually, to keep the mysql querying from going crazy, you should use quotation marks within the query. havent looked at your code. go and paste it at something like pastebin for any1 to validate it. (www.tempcode.com / www.pastebin.com / nopaste / www.pastey.net / ...)

Share this post


Link to post
Share on other sites

okay :blink:... well im startin to learn how to use jquery .. and i found a nyc ajax (javascript) to replace the old one and it seems fine so far 5 hours 44 minutes 53 seconds .... i dont think i should have the problem anymore... i have the old script in one place of my website witch i will remove and replace..

 

check the wikipedia entry (has a clean,small and good sample ready to use with all browsers) or use jquery+pquery or any other javascript framework+your own handling.

 

usually, to keep the mysql querying from going crazy, you should use quotation marks within the query. havent looked at your code. go and paste it at something like pastebin for any1 to validate it. (www.tempcode.com / www.pastebin.com / nopaste / www.pastey.net / ...)

 

 

do u mean like this "$varable" and when i use html with php i use "<p class='whatever'>$blah</P>" (thats how i do them )

 

thanks for ur help ;)... and where abouts on wiki will i find this sorta stuff??? i have not long started to learn html, php javascript lol. im a quite quick learner but i also make alot of mistakes lol.

Share this post


Link to post
Share on other sites

Still using jQuery just about every day. I now author jQuery plug-ins and consult full time. I'm primarily a Djangonaut but I've done several javascript only contracts with jQuery. It's a life saver.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...