Fatal Error Call To Undefined Function Mysql_connect In Php 5.3
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 Undefined function mysql_connect() up vote 11 down vote favorite 7 I have ran aptitude install php5-mysql (and restarted MySQL/Apache 2), but I am still getting this error: Fatal error: Call to undefined function mysql_connect() in /home/validate.php on line 21 phpinfo() says the /etc/php5/apache2/conf.d/pdo_mysql.ini file has been parsed. php mysql ubuntu mysql-connect undefined-function share|improve this question edited Feb 26 at 14:39 Peter Mortensen 10.2k1369107 asked Dec 11 '12 at 17:12 user1765369 1282213 How about other built in PHP/MySql functions? Do they work? –samayo Dec 11 '12 at 17:16 Perhaps not, as I have tried entering incorrect user/pass and my 'or die' statement is not showing! –user1765369 Dec 11 '12 at 17:22 add a comment| 10 Answers 10 active oldest votes up vote 18 down vote accepted Well, this is your chance! It looks like PDO is ready; use that instead. Try checking to see if the PHP MySQL extension module is being loaded: If it's not there, add the following to the php.ini file: extension=php_mysql.dll share|improve this answer edited Feb 26 at 14:40 Peter Mortensen 10.2k1369107 answered Dec 11 '12 at 17:13 wanovak 4,5981424 Is this a better way to connect to a database? I will look into it but I would really like to get this working first as it worked previously until I moved to a new server. –user1765369 Dec 11 '12 at 17:15 1 It is. mysql_*
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() up vote -1 down http://stackoverflow.com/questions/13825108/undefined-function-mysql-connect vote favorite I am getting this error Fatal error: Call to undefined function mysql_connect() in /var/www/html/test1.php on line 8 for the following code: I have PHP, MYSQL, http://stackoverflow.com/questions/12783589/fatal-error-call-to-undefined-function-mysql-connect php-Mysql installed in my system: [root@localhost ~]# rpm -qa | grep mysql php-mysql-5.3.3-3.el6_2.8.i686 mysql-devel-5.1.61-4.el6.i686 mysql-server-5.1.61-4.el6.i686 mysql-bench-5.1.61-4.el6.i686 mysql-libs-5.1.61-4.el6.i686 mysql-5.1.61-4.el6.i686 [root@localhost ~]# rpm -qa | grep php php-common-5.3.3-3.el6_2.8.i686 php-5.3.3-3.el6_2.8.i686 php-mysql-5.3.3-3.el6_2.8.i686 php-cli-5.3.3-3.el6_2.8.i686 php-pdo-5.3.3-3.el6_2.8.i686 output of phpinfo() : http://jsfiddle.net/nit8899/GZ4f7/ Also I have edited the /etc/php.ini file: extension=mysql.so But even then I am getting this error. php share|improve this question edited Oct 9 '12 at 19:38 hakre 134k26216387 asked Oct 8 '12 at 14:17 nitxx 21114 I cant view the linked area from work - does it say MySQL is enabled? –BugFinder Oct 8 '12 at 14:18 Possible duplicate of stackoverflow.com/questions/10615436/… –Marco Pace Oct 8 '12 at 14:19 2 Why are you writing new code using mysql_* anyway? –Quentin Oct 8 '12 at 14:19 3 apt-get install php5-mysql –Dan Lee Oct 8 '12 at 14:20 Yes it says both php and mysql are installed. –nitxx Oct 8 '12 at 14:27 | show 1 more comment 5 Answers 5 active oldest votes up vote 2 down vote if you are working on linux [debian] apt-get install php5-mysql because your PHP is not able to talk with mysql share|improve this answer answered Nov 24 '14 at 11:21 Divyesh Singhal 212 add a comm
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET https://forums.iis.net/t/prev/1230334 Forums Partner and Community Forums PHP Community PHP Fatal error: Call to undefined function mysql_connect() PHP Fatal error: Call to undefined function mysql_connect() RSS 3 replies https://www.youtube.com/watch?v=e3y57I63gCw Last post Mar 22, 2016 07:42 PM by DropPhone ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads fatal error Advanced Search Reply PacoRenteria 1 Post PHP Fatal error: Call to undefined function mysql_connect() Jan 22, 2015 05:43 PM|PacoRenteria|LINK Greetings Fellows, I am having this problem in just one page! PHP Fatal error: Call to undefined function mysql_connect() I am using IIS8.0 with PHP 5.3, the problem is ONLY on one fatal error call page and I have tried everything that has come to my mind. Even replaced the code with other copied from a working page and surprisingly, it doesn't work. I have checked and double checked the page sintaxis and still doesn't work. ¿any ideas? Thx in advance. mysql mssql_connect php Reply DropPhone 295 Posts MicrosoftModerator Re: PHP Fatal error: Call to undefined function mysql_connect() Jan 26, 2015 05:44 PM|DropPhone|LINK Just checking: is the extension=php_mysql.dll enabled inyour php.ini file? You may also need to uncomment the extension=php_pdo_mysql.dll and the extension=php_mysqli.dll lines as well. Thx! --E. mysql mssql_connect php Reply Onret 1 Post Re: PHP Fatal error: Call to undefined function mysql_connect() Mar 09, 2016 07:30 AM|Onret|LINK I have the same problem (exept running on iis10 and have php 7.0.3). I could only find "extension=php_mysqli.dll" in my .ini file and have tried to write in "extension=php_mysql.dll" and paste a downloaded php_mysql.dll in the /ext/ directory.
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 Dieses Video ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange __count__/__total__ Fatal error Call to undefined function mysql_connect().avi freehelpvideos AbonnierenAbonniertAbo beenden124124 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 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 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 How to solve mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) - Dauer: 4:53 Mohammad Sheam 56.033 Aufrufe 4:53 Fix for Fatal error: Call to undefined function mssql_connect() - Dauer: 1:14 Omar Wael 54.241 Aufrufe 1:14 [FIX] Call to undefined function mysql connect() in PHP - How to fix errors ? - Dauer: 1:11