I'm a novice at php and MySQL. I decided I wanted to learn more so I downloaded a web server, php & MySQL. I'm trying to use phpMyadmin. It gave me an error and then linked to here in the documentation: I don't really understand what to do. How do I install this "PHP-MySQL" thing? Thanks for any help.
Installing PHP and MySQL on your own computer is very hard. The best way to do it is install this program which basically turns your computer into a web server. Its called WAMP. Its very good and easy to use. But the best thing is that it installs and configures PHP and MySQL. http://www.wampserver.com/en/
I already have a web server and php already and I would rather not have to redo everything. Is there anybody who could direct me on how to install just MySQL? Thanks in advance.
You need to download the mysql extension "php_mysql.dll" or "php_mysql.so" and put in your php extension directory "EXT" generally. .DLL is on win32 systems, other one is for linux OS. The directory "ext" is available inside the folder "php" (wherever you installed php) Next open php.ini in notepad and scroll a lot down till you find "extensions" There could be some entries like: extension=some.dll See if you already have mysql extension here, If it has a ; sign before it, remove the ; sign. If no line has extension=php_mysql.dll then add it somewhere along with other extensions. If you just need it to learn, and not a live server, you can use WAMP on win32 systems and all this stuff is done for you in the installer. Second post above has a link to download wamp. You can download mysql extension on php.net I think it comes in with the download of php itself. Forgot to mention that you need to restart server for changes to take effect. regards
I checked and I have the file php_mysql.dll in the ext directory. I removed the semicolon from ";extension=php_mysql.dll" and I restarted my web server. I am still getting the error.