Fatal Error Call To Undefined Function Mysql_connect Apache 2.2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 up vote 6 down vote favorite 3 Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 I've spent 11 hours today trying to get past this ONE problem. I have installed: MySQL 5.1 Apache 2.2.14 PHP 5.2.17 these were the versions referred to in the book "PHP and MySQL". When I run the script: where localhost, root and password are the REAL values for this given test system and all I have seen is: Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2 php share|improve this question edited Mar 3 '11 at 10:36 Pekka 웃 304k93697913 asked Mar 3 '11 at 10:33 user389055 911513 add a comment| 3 Answers 3 active oldest votes up vote 14 down vote accepted Uncomment the line extension=php_mysql.dll in your "php.ini" file and restart Apache. Additionally, "libmysql.dll" file must be available to Apache, i.e., it must be either in available in Windows systems PATH or in Apache working directory. See more about installing MySQL extension in manual. P.S. I would advise to consider MySQL extension as deprecated and to use MySQLi or even PDO for working with databases (I prefer PDO). share|improve this answer answered Mar 3 '11 at 10:37 binaryLV 6,7421933 1 use phpinfo() to find out which php.ini is the right one. –Pekka 웃 Mar 3 '11 at 10:38 which php.ini is the right one mins? –user389055 Mar 3 '11 at 10:41 "Uncomment the line extension=php_mysql.dll in your php.ini and restart Apache" i did this allready –user389055 Mar 3 '11 at 10:42 Ensure that extension_dir in "php.ini" points to the correct directory (e.g., "C:/Web/php-5.3.5-Win32-VC6-x86/ext" in my case). –binaryLV Mar 3 '11 at 10:44 thanks it done.. –user389055 Mar 3 '11 at 11:00 | show 2 more comments up vote 1 down vote I
using php5.2,mysql 4.1 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Page 1 of 2 12 Last Jump to page: Results 1 to 15 of 21 Thread: [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode http://stackoverflow.com/questions/5179535/fatal-error-call-to-undefined-function-mysql-connect-in-c-apache-htdocs-test Switch to Threaded Mode 02-08-2010,10:06 AM #1 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 [RESOLVED] i am Fatal error: Call to undefined function mysql_connect() using php5.2,mysql 4.1 hi all i am getting following error while i am using php 5.2.12 and mysql4.1 in windows Fatal error: Call to undefined function mysql_connect() please help me to solve my problem thanks in advance "Speak your truth quietly http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 and clearly, and listen to others, even the dull and ignorant, they too have their story. " Reply With Quote 02-08-2010,10:25 AM #2 halojoy View Profile View Forum Posts Visit Homepage phpMaster Join Date Jun 2005 Location Europe Posts 2,992 Run a phpinfo() to see if the php_mysql extension module is loaded. If it is not, you should activate mysql extension. For example in php.ini: extension=php_mysql.dll PHP Code:
Apache2.4.18 (Win64) / PHP5.6.19 / MySQL5.7.11 / phpMyAdmin4.6.0 Reply With Quote 02-08-2010,02:23 PM #3 bradgrafelman View Profile View Forum Posts Visit Homepage Pna lbh ernq guvf¿ Join Date Jul 2004 Location Kansas City area Posts 19,435 Moved to Install forum. If enabling the "extesion=" line in your php.ini file doesn't work, read over the FAQ stickied at the top of this forum (specifically, the post entitled "2. PHP5 :: Can't use mysql_*() functions"). If neither of those solves your problem, let us know. Reply With Quote 02-10-2010,05:03 AM #4 thread_PHP View Profile View Forum Posts Senior Member Join Date Jan 2006 Posts 323 hi halojoy i am sending you following files containing my phpinfo files Attached Images 3.jpg (92.2 KB, 3146 views) "Speak your truth quietly and c
phpinfo();
?>
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You can change this preference https://www.youtube.com/watch?v=0Yz0VSffZdM below. Schließen Ja, ich möchte sie behalten Rückgängig machen Schließen Dieses Video ist in Deutschland leider nicht verfügbar, da es Musik von SME enthalten könnte, über deren Verwendung wir uns mit der GEMA bisher nicht einigen konnten. Das tut uns leid. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange fatal error __count__/__total__ [RESOLVIDO] Fatal error Call to undefined function mysql_connect() Bruno Mendes AbonnierenAbonniertAbo beenden Wird geladen... Wird geladen... Wird verarbeitet... Hinzufügen Möchtest du dieses Video später noch einmal ansehen? Wenn du bei YouTube angemeldet bist, kannst du dieses Video zu einer Playlist hinzufügen. Anmelden Teilen Mehr Melden Möchtest du dieses fatal error call Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden 27.755 Aufrufe 16 Dieses Video gefällt dir? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 17 28 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 29 Wird geladen... Wird geladen... Wird geladen... Die Bewertungsfunktion ist nach Ausleihen des Videos verfügbar. Diese Funktion ist zurzeit nicht verfügbar. Bitte versuche es später erneut. Veröffentlicht am 27.01.2014VÃdeo detalhado sobre como conectar o banco de dados do wamp, sem "fatal error". Kategorie Wissenschaft & Technik Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Autoplay Wenn Autoplay aktiviert ist, wird die Wiedergabe automatisch mit einem der aktuellen Videovorschläge fortgesetzt. Nächstes Video Fatal error Call to undefined function mysql connect() - Dauer: 3:01 thien nguyen 8.817 Aufrufe 3:01 Fatal error Call to undefined function mysql_connect().avi - Dauer: 2:53 freeh