Pawan_Agarwal Posted September 18, 2014 Share Posted September 18, 2014 Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10048) in C:\xampp\htdocs\chat\admin_logout.php on line 22 Could not connect: Can't connect to MySQL server on 'localhost' (10048) can anyone help me in finding the error ?? Thanks for your help !! Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted September 18, 2014 Share Posted September 18, 2014 Are you sure MySQL is running? Quote Link to comment Share on other sites More sharing options...
Pawan_Agarwal Posted September 18, 2014 Author Share Posted September 18, 2014 yes, in last few days, the code has been running fine !! But now it is providing error, I do not why it is saying the the xampp is not installed correctly !! Quote Link to comment Share on other sites More sharing options...
CroNiX Posted September 18, 2014 Share Posted September 18, 2014 There are a lot of things that can cause that mysql error (10048) if you google it. It has nothing to do with xampp. It has to do with the mysql server. Did you try rebooting your machine? It could even be a registry setting in windows dealing with TCP ports. Quote Link to comment Share on other sites More sharing options...
Pawan_Agarwal Posted September 18, 2014 Author Share Posted September 18, 2014 I am working on xampp from last 1 year and it never created a problem for me , but , now this is showing error , I have already rebooted the machine !! Quote Link to comment Share on other sites More sharing options...
Pawan_Agarwal Posted September 19, 2014 Author Share Posted September 19, 2014 can anyone help me ?? I am facing this error and from last one year, I was not facing any error , it has started appearing from last 3-4 days !! Can't connect to MySQL server on 'localhost' (10048) Quote Link to comment Share on other sites More sharing options...
Pawan_Agarwal Posted September 19, 2014 Author Share Posted September 19, 2014 #2003 - Can't connect to MySQL server on 'localhost' (10048) Connection for controluser as defined in your configuration failed. phpMyAdmin - Error, Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. -------------------------------------------- I have installed and un-installed xampp but I get the same error I have also changed settings of my anti-virus, but I get the same error Quote Link to comment Share on other sites More sharing options...
Pawan_Agarwal Posted September 20, 2014 Author Share Posted September 20, 2014 (edited) Restarting "xampp" can't find process "c:\xampp\mysql\bin\mysqld.exe". I have checked mysql\bin\ and the file mysqld.exe exits but the xampp server is not showing, after the error , mysql deactivates itself .... It is available again at restart only .. Edited September 20, 2014 by Pawan_Agarwal Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.