clem_c_rock Posted September 4, 2006 Share Posted September 4, 2006 Hello,I have screwed up something on my php.ini file on a windows server and now I am getting this error: "unable to load dynamic library C:\php5\php_mysql.dll". Now, my PHP installation actually resides here: C:\PHP\ so, obviously, it's pointing to the wrong address.Where do I change this so the program is looking in the right directory?Thanks,Clem C Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 4, 2006 Share Posted September 4, 2006 Open up your php.ini and find the extension_dir directive (around line 529). Change whats in the quotes ro whats after "[i]extension_dir =[/i]" with the actual path to the extension folder.Also if havn't added php to the Windows PATH Variable, copy a file called libmysql.dll to C:\WINDOWS folder. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted September 5, 2006 Author Share Posted September 5, 2006 Well, I fixed the first error by setting the extensions_dir to the correct path but now I have another error when I go to phpMyAdmin: "Cannot load mysql extension". PHP was working fine before I blew it up so I'm pretty confident that the PATH variable is set correctly.Thanks for your time. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 5, 2006 Share Posted September 5, 2006 Your mysql extension hasn't been loaded up correctly. Which extension did you enable the normal mysql extension (php_mysql.dll) or the MySQL Improved extenson (php_mysql[b]i[/b].dll).Also run this in a script:[code=php:0]<?php phpinfo(); ?>[/code]Does it have a mysql section anywhere in that file? Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted September 5, 2006 Author Share Posted September 5, 2006 Well, I got that error fixed by pointing the extension_dir to the correct directory.Now I have another error which is: "Cannot load mysql extension" when I go to phpMyAdmin. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 5, 2006 Share Posted September 5, 2006 You may have fixed the path to the extension_dir but it may not have loaded up the mysql extension properly. Otherwise phpMyAdmin wouldnt report "Cannot load mysql extension".That why I said to check that there is a mysql section present when running the phpinfo function. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted September 6, 2006 Author Share Posted September 6, 2006 Yeah there is - and it looks a bit problematic to me:[code]Active Persistent Links 0Active Links 0Client API version 4.1.7Directive Local Value Master Valuemysql.allow_persistent On Onmysql.connect_timeout 60 60mysql.default_host no value no valuemysql.default_password no value no valuemysql.default_port no value no valuemysql.default_socket no value no valuemysql.default_user no value no valuemysql.max_links Unlimited Unlimitedmysql.max_persistent Unlimited Unlimitedmysql.trace_mode Off Off[/code]Any Suggestions? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 6, 2006 Share Posted September 6, 2006 Okay so the cause is with phpMyAdmin now then make sure you have extracted the contents of the phpMyAdmin contents properly and that you have [url=http://www.phpmyadmin.net/documentation/#setup]setup the config.inc.php[/url] file correctly. Also make sure you have the latest statble release of [url=http://www.phpmyadmin.net]phpMyAdmin[/url]Also the MySQL configuration reported is fine. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted September 6, 2006 Author Share Posted September 6, 2006 Ok - got it!!Actually mysql and PHP were running fine after I changed the extension_dir to the correct directory.The Problem after that was w/ phpMyAdmin and it's configuration.Here's what I did to fix that:[code]'host' from localhost to the machine host name 'extension' to 'mysqli' 'user' to a user who has access to MySQL, i.e. can log onto MySQL on the server 'password' to the password of the user[/code] 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.