SayWhat Posted December 30, 2008 Share Posted December 30, 2008 Hi, I got this book called "Learning PHP & MySQL" from my dad. I've just started the installations, and I'm about to install the MySQL Connector. It says: Download the MySQL PHP Connector from http://dev.mysql.com/downloads/connector/php But all I can see is the MySQL search. After a while of just clicking around, I found a .zip that I thought would be it. But it didn't contain the "libmysql.dll" file that I should copy to system32. So now I'm very confused, is there somewhere else I can download this .zip . Or am I doing something completely wrong? ??? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/ Share on other sites More sharing options...
Mchl Posted December 30, 2008 Share Posted December 30, 2008 You don't need it (most likely). PHP installer for windows should have mysql and mysqli extensions included. Read this FAQ about connecting PHP to MySQL http://www.phpfreaks.com/forums/index.php/topic,95378.0.html Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726305 Share on other sites More sharing options...
Maq Posted December 30, 2008 Share Posted December 30, 2008 Another consideration would be to use WAMP, makes the installation much easier. Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726306 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 oh okay thanks. Well it says on step 8: Navigate to your phpinfo.php test page. You should now see a section with the heading MySQL in the middle of the page. That section confirms that PHP can talk to MySQL - will this work if I use WAMP? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726312 Share on other sites More sharing options...
Maq Posted December 30, 2008 Share Posted December 30, 2008 Yes. It's what you're trying to install now. All it is, is a package for Windows with Apache, MySQL and PHP in it. Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726314 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 Oh I see. But when I type http://localhost/phpinfo.php, I still can't see that "new section with the heading MySQL in the middle of the page - witch confirms that PHP can talk to MySQL. :/ Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726341 Share on other sites More sharing options...
Mchl Posted December 30, 2008 Share Posted December 30, 2008 Did you follow FAQ I posted link to, or did you install WampServer? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726347 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 I followed the FAQ. Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726348 Share on other sites More sharing options...
Maq Posted December 30, 2008 Share Posted December 30, 2008 Do you have Apache installed? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726351 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 Yeah I installed it yesterday, PHP too and MySQL Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726360 Share on other sites More sharing options...
Mchl Posted December 30, 2008 Share Posted December 30, 2008 I never had any luck installing Apache and PHP on Windows by myself... that's why I always use WampServer Ok... let's check some things 1. Does http://localhost/phpinfo.php display a phpinfo page? 2. Do you have these two lines in php.ini file? extension=php_mysql.dll extension=php_mysqli.dll (note, there's no ; at the beginning. Remove it if you have it) 3. Did you restart your Apache server after modifying php.ini file? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726363 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 hm, yes on the first, and I do have one called "extension=msql.dll" and it's without the ;, so should I put one there? I can't seem to find those you sent, where should I put them? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726376 Share on other sites More sharing options...
Mchl Posted December 30, 2008 Share Posted December 30, 2008 As I said, I'm pretty lame when it comes to installing PHP and Apache on Windows... If the FAQ didn't help you, perhaps you should actually try WampServer. You'll have PHP+MySQL working in minutes. Or you can try asking someone else. Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726429 Share on other sites More sharing options...
SayWhat Posted December 30, 2008 Author Share Posted December 30, 2008 Oh okay, but I have WAMP now, but I still can't see that MySQL on the php-page Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726434 Share on other sites More sharing options...
Mchl Posted December 30, 2008 Share Posted December 30, 2008 You did uninstall your previous Apache, PHP and MySQL, didn't you? Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-726462 Share on other sites More sharing options...
Dogmeat Posted August 11, 2009 Share Posted August 11, 2009 Got the same book and had the same problem, but a third-party website had a link to the right page, even though /connector/php isn't up any more: http://dev.mysql.com/get/Downloads/Connector-PHP/php_5.2.0_mysql_5.0.27-win32.zip/from/pick Quote Link to comment https://forums.phpfreaks.com/topic/138895-mysql-php-connector/#findComment-895662 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.