abdfahim Posted December 30, 2009 Share Posted December 30, 2009 Hi, I have installed Apache 2.2.11 with php 5.3.1 and mysql 5.0.89. Apache and php works fine. Mysql also installed and configured succesfully and also MySQL service is running (checked in the services window). Still when I am trying to connect to MySQL Server (by Phpmyadmin or by simple php coding). it just hang forever. There is no mistake in coding for sure because the same coding executes successfully in my laptop, but start causing problem when I load that in the new server. Anybody can help please? Quote Link to comment https://forums.phpfreaks.com/topic/186680-cannot-find-server/ Share on other sites More sharing options...
abdfahim Posted December 30, 2009 Author Share Posted December 30, 2009 to add some more infor, I can create database/table or insert records using command prompt ... but cant do the same from php. But phpinfo shows mysql active Quote Link to comment https://forums.phpfreaks.com/topic/186680-cannot-find-server/#findComment-985905 Share on other sites More sharing options...
ignace Posted December 30, 2009 Share Posted December 30, 2009 Have you checked the error_log? Always remind yourself that your laptop is not your server meaning that environment and their configuration do not always match which are likely causing the problem. Quote Link to comment https://forums.phpfreaks.com/topic/186680-cannot-find-server/#findComment-985924 Share on other sites More sharing options...
PFMaBiSmAd Posted December 30, 2009 Share Posted December 30, 2009 But phpinfo shows mysql active Copy/paste the lines from the phpinfo output that shows what you see. I suspect you are seeing the mysqlnd driver and not the actual mysql extension. Are you doing this on a system with error_reporting set to E_ALL and display_errors set to ON in your master php.ini (and confirm that the settings are actually those values using a phpinfo() statement in case the php.ini that you are changing is not the one that php is using) so that php WOULD display any errors related to the problem? WHAT is your actual code that is not working? Perhaps it IS doing something out of the ordinary that was required to get it to work on one system but is not the typical/expected method and needs to be adjusted to get it to work on newly installed system that was installed in the expected manner. Quote Link to comment https://forums.phpfreaks.com/topic/186680-cannot-find-server/#findComment-985953 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.