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 !! Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/ Share on other sites More sharing options...
Jacques1 Posted September 18, 2014 Share Posted September 18, 2014 Are you sure MySQL is running? Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491517 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 !! Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491520 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. Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491524 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 !! Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491548 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) Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491611 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 Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491614 Share on other sites More sharing options...
Pawan_Agarwal Posted September 20, 2014 Author Share Posted September 20, 2014 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 .. Link to comment https://forums.phpfreaks.com/topic/291150-mysql-connection-disconnect/#findComment-1491652 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.