Fatal Error Call To Undefined Function Mysql_connect On Windows
Contents |
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
Fatal Error Call To Undefined Function Mysql Connect
company Business Learn more about hiring developers or posting ads with us Stack Overflow fatal error call to undefined function mysql connect in windows xp Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 fatal error call to undefined function mysql connect windows 7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function mysql_connect up vote 18 down vote favorite 2 I just installed PHP and Apache on
Fatal Error Call To Undefined Function Mysql Connect Php
my home PC. When I try to call function mysql_connect I get: fatal error: call to undefined function mysql_connect. I have loaded php.ini where I have uncommented lines extension=php_mysql.dll and extension=php_mysqli.dll and changed extension directory to extension_dir = "C:\php\ext" - which is the directory where files php_mysql.dll and php_mysqli.dll are. How can I fix this problem? Output of phpinfo(): http://jsfiddle.net/MMTwA/ windows php share|improve this question edited Nov 3 '15 at 9:02 Peter Mortensen
Fatal Error Call To Undefined Function Mysqli Connect
10.2k1369107 asked Dec 18 '11 at 11:28 Nikolas JíÅ¡a 3841521 2 Have you restarted apache after editing the php.ini? :) And do you also have MySQL installed? Maybe you should have a look at XAMPP (apachefriends.org/en/xampp-windows.html) which is an easy to use package containing apache, php and mysql. –Quasdunk Dec 18 '11 at 11:30 Yes I have restarted it. Yes I have MySQL installed though even if I hadn't I would still get "Undefined function...". I'll probably look at that XAMPP if I don't solve this, thanks. –Nikolas JíÅ¡a Dec 18 '11 at 11:56 Try copying the libmysql.dll to C:\Windows\System32. And, again, if you just need a development environment, have a look at XAMPP. It comes with everything integrated, has a GUI, works out of the box and will save you a lot of headache (especially under Windows!). –Quasdunk Dec 18 '11 at 12:23 I have libmysql.dll in C:\Windows\System32 already, I'll try that XAMPP if I dont solve this by evening, thanks. –Nikolas JíÅ¡a Dec 18 '11 at 12:28 Providing the contents of might help. –Bryan Dec 18 '11 at 12:32 | show 6 more comments 12 Answers 12 active oldest votes up vote 12 down vote accepted After looking at your phpinfo() output,
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You can change this preference below. Schließen Ja, ich möchte sie behalten Rückgängig machen Schließen fatal error call to undefined function mysql_connect() xampp Dieses Video ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste
Fatal Error Call To Undefined Function Mysql_connect() In Php
Warteschlange __count__/__total__ Fatal error Call to undefined function mysql_connect().avi freehelpvideos AbonnierenAbonniertAbo beenden124124 Wird geladen... Wird geladen... Wird fatal error: uncaught error: call to undefined function mysql_connect() in xampp 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 http://stackoverflow.com/questions/8551398/call-to-undefined-function-mysql-connect du dieses Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden Transkript Statistik 60.025 Aufrufe 108 Dieses Video gefällt dir? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 109 25 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 26 Wird geladen... Wird geladen... Transkript Das https://www.youtube.com/watch?v=e3y57I63gCw interaktive Transkript konnte nicht geladen werden. 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 16.06.2012If you have received the dreaded "Fatal error Call to undefined function mysql_connect()", this video may help.Here is the text from the video:Fatal error: Call to undefined function mysql_connect()php.iniC:\WINDOWSC:\WINDOWS\SYSTEM32extension_dir = "./"extension_dir = "C:\php\ext";extension=php_mysql.dllextension=php_mysql.dll Kategorie Bildung Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Wird geladen... Anzeige 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 Fix for Fatal error: Call to undefined function mssql_connect() - Dauer: 1:14 Omar Wael 54.241 Aufrufe 1:14 How to solve mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) - Dauer: 4:53 Mohammad Sheam 56.033 Aufrufe 4:53 Fatal error: Call to undefined function mysql_connect() in in xampp php school - Dauer: 1:18 PHP School 681 Aufrufe 1:18 [FIX] Call to undefined function mysql
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 http://board.phpbuilder.com/showthread.php?10371200-RESOLVED-i-am-Fatal-error-Call-to-undefined-function-mysql_connect()-using-php5-2-mysql-4-1 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 http://perfect-it-solutions.blogspot.com/2008/04/fatal-error-call-to-undefined-function.html 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 fatal error Search Display Linear Mode Switch to Hybrid Mode 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 call to undefined to solve my problem thanks in advance "Speak your truth quietly 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
phpinfo();
?>
on Vista. I expected everything to run smoothly. But, it was really not the case. As I tried to connect to MySQL using PHP code, I got stuck with the following error:"Fatal error: Call to undefined function mysql_connect()"But, finally I cracked the problem. If the same problem is annoying you, please follow the solution below:To connect PHP to MySQL "php_mysql.dll" is required. We need to mention the location "php_mysql.dll" in "php.ini"(configuration file). 1)Open "php.ini" in some text editor.2) Search for the line "extension_dir = "./" " and mentionthe path of "ext" folder in place of "./". For example if youhave installed PHP in "C:/program Files" then change"extension_dir = "./" " to"extension_dir = "C:/Program Files/php/ext" ".3) Search for the line "extension=modulename.extension"(You will find it in Dynamic Extensions) and change it to"extension=php_mysql.dll".Learn to Earn Money Online Visit: http://online-income-sources.blogspot.com Previous Chapter Home Your Ad Here Chapters : 1.Introduction 2.Download appropriate packages. 3.Disable UAC and IIS. 4.Installing Apache 2.2.6 5.Installing PHP 5.2.5 6.Installing MySQL 5.0.45 7.Fatal error: Call to undefined function mysql_connect()