tibberous Posted November 16, 2010 Share Posted November 16, 2010 It seems like everytime I try and install apache / PHP / mySQL they manage to have it more fucked up than the time before. MySQL is working, PHP is working. Loaded Configuration File is C:\php\php.ini And in that file are the lines: extension_dir = "C:/php/ext" extension=php_mysql.dll And: C:/php/ext/php_mysql.dll exists So why the fuck doesn't it work, or even throw an error? MySQL isn't showing up on the phpinfo page - it's like the extension=php_mysql.dll isn't even there. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 16, 2010 Share Posted November 16, 2010 What method did you use to install php? Manually with the .zip package or using the .msi installer package? Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1134863 Share on other sites More sharing options...
tibberous Posted November 16, 2010 Author Share Posted November 16, 2010 I think the zip - I don't know anything to do at this point but uninstall everything and reinstall from scratch. It just seems like there is always some buggy-ass trick you need to know to get it to install right. I wish the people who packaged it weren't so fucking stupid. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1134864 Share on other sites More sharing options...
The Little Guy Posted November 16, 2010 Share Posted November 16, 2010 I haven't installed php with a zip, but I assume that it came with an exe or msi in it. If it did, there should be a page where you select what you want installed, did you enable mysql? -- Edit it is also possible that apache is using the wrong php install (if you have more than 1 install), or php is using the wrong ini file. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1134868 Share on other sites More sharing options...
trq Posted November 16, 2010 Share Posted November 16, 2010 I wish the people who packaged it weren't so fucking stupid. Your joking aren't you? If you are unable to even remember the process you used to install php then it is HIGHLY likely that the problem is something YOU have done incorrectly. Just calm down. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1134870 Share on other sites More sharing options...
tibberous Posted November 16, 2010 Author Share Posted November 16, 2010 I'm sure I've done something incorrectly, I'm pissed because they keep adding more and more bullshit to the install process. I never had an issue getting MySQL to run until they decided to disable it by default - now it's a big deal just to setup a dev environment. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1135046 Share on other sites More sharing options...
tibberous Posted November 16, 2010 Author Share Posted November 16, 2010 Okay, want to know what I'm fucking talking about? mysql_connect("localhost", "root", "password") doesn't work anymore. it has to be: mysql_connect("127.0.0.1:3306", "root", "password") THAT IS FUCKING RETARDED! I know it is open source, and some very brilliant people have written some very brilliant code - but just once I'd like to be able to install it without something being fucked up. It's bad enough I have to install about 12 programs everytime I reformat, now I have to replace every instance of localhost with 127.0.0.1:3306?? Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1135052 Share on other sites More sharing options...
tibberous Posted November 16, 2010 Author Share Posted November 16, 2010 Turns out the localhost this is a Windows 7 issue, have to uncomment the #127.0.0.1 localhost line in the hosts file now. Wish someone would make a WAMPPWNUEWOCSX installer. Windows - Apache - Mysql - PHP - Putty - WinSCP - Navicat - UE Studio - WinRAR - Office - CS whatever version... Would save me about 50 hours a year, and a considerable amount of stress... Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1135071 Share on other sites More sharing options...
trq Posted November 16, 2010 Share Posted November 16, 2010 Wish someone would make a WAMPPWNUEWOCSX installer. Why don't you? Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1135253 Share on other sites More sharing options...
tibberous Posted November 19, 2010 Author Share Posted November 19, 2010 Wish someone would make a WAMPPWNUEWOCSX installer. Why don't you? UE Studio - WinRAR - Office and CS aren't free. Not sure if the open source community would support a program that automated the torrent downloading / cracking phase of the installation. Looks like PHP throws a warning now about the timezone too =/ Would have made more sense as a notice imo. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1136499 Share on other sites More sharing options...
trq Posted November 19, 2010 Share Posted November 19, 2010 It's a hard life. Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1136591 Share on other sites More sharing options...
NicholasB Posted December 3, 2010 Share Posted December 3, 2010 Turns out the localhost this is a Windows 7 issue, have to uncomment the #127.0.0.1 localhost line in the hosts file now. Thanks Trent, that worked for me too. (I'm sure that makes you fell much better Quote Link to comment https://forums.phpfreaks.com/topic/218822-why-in-the-hell-is-mysql_select_db-undefined/#findComment-1142725 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.