Netshine Software Limited







Home arrow Developer Blog Make Text BiggerMake Text SmallerReset Text Size
Category >> windows

Sep 25
2009

Can't connect to MySQL on 'localhost' and/or Couldn't fetch MySQLi

Posted by netshine in windows xpwindows registrywindowstcp/ipportmysqlimysqlmultiple connectionslocalhostdatabase

I was recently writing some code to migrate data from one database to another in small chunks (so that the progress could be reported to the browser using AJAX), but while developing on my Windows XP machine, I kept getting the above 2 error messages. This would occur only after a significant amount of data had already been processed successfully.

As the processing involved opening and closing connections to 2 different databases many times, it smelt like the connections were not being closed properly, but I double-checked everything and I was indeed explicitly closing all of the connections after use. Several frustrating hours later, I discovered the cause of the problem...

Apr 27
2009

Apache won't start on XAMPP

Posted by netshine in xamppwindowstasklistskypeprocessportPIDphp.iniPHPconsoleapache

If you use XAMPP to run a local web server, you might have come across the problem whereby Apache will not start. You click the Start button in the XAMPP control panel, the green 'Running' message appears for a second or two, then disappears again, and Apache fails to start. This can be a very frustrating problem, as you get absolutely no feedback about why it won't start. I found 2 possible causes for this...

Joomla! Tutorial
Take a look at our free tutorial for Joomla! Administrator...


Login Form





Lost Password?

© 2004-2010 Netshine Software Limited   Terms and Conditions