Connecting Tech Pros Worldwide Help | Site Map

problem with connection to MySQL

jx2 jx2 is offline
Familiar Sight
 
Join Date: Feb 2007
Location: Bristol UK
Posts: 227
#1: Apr 22 '07
i decidet to repeat my old post and ask more precisely
so...:
1: PROBLEM - sometimes connection doesnt starts (on avg 1 in 5 -i counted it )
2: script works well on commercial sever but not on my own pc
3 i use windows XP apache mysql 5.xx php4
4 i use mysql_connect() - its anonymus account for local host
5 i tried mysql_pconnect() but the same error ocurre
6 error :

mysql_pconnect(): Can't connect to MySQL server on 'localhost' (10022)

my code have a few mysql_quey() select and update
not all of the tables r updated(i no sure what couse it could be because of first error- refresh)

i run apache, php and mysql on the same machine so thats no cables:-)

what is it - configuration? it works on my commercial server so i'am sure there is no problem with code - and code is quite simple so there shouldnt b version problem

i will appereciate any help - i am at the point i cant coupe with it on my own :-(

thanks a lot
jx2
Newbie
 
Join Date: Apr 2007
Posts: 8
#2: Apr 22 '07

re: problem with connection to MySQL


1. I would probably point a figure at mysql installation. Its probably something to do with some corrupt file or something. I had such an sure before and all I did was to reinstall mysql. be sure to backup your databases before you unistall mysql
Reply