Offline Pages: 1 Index »Newbie Corner »getting Fatal error: Call to undefined function mysql_connect() error. How do I "install" CentOS? Why would breathing pure oxygen be a bad idea? On Ubuntu systems you can issue the following command to restart: sudo service apache2 restart After I restarted, I was no longer receiving that particular error message! click site
If your project depends on it, revert back to php version that supports it. –Mjh Dec 4 '15 at 12:33 I think you need to read and digest the What is a tire speed rating and is it important that the speed rating matches on both axles? On my RHEL6 system the entry that works is: ; Enable mysql extension module extension=/usr/lib64/php/modules/mysql.so After modifying the file, I restarted apache and everything worked. When the page is loaded in the web browser, you receive the error, Fatal error: Call to undefined function mysql_connect().
Related 3How to solve Fatal error: Call to undefined function readline()? Call To Undefined Function Mysql_connect() Php 7 more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Not the answer you're looking for? Browse other questions tagged 11.10 apt apache2 mysql php or ask your own question.
Fix Verify that your installation of PHP has been compiled with mysql support. Call To Undefined Function Mysql_connect() Ubuntu share|improve this answer edited Aug 22 at 6:01 answered Aug 4 at 3:07 kujiy 1139 add a comment| up vote 2 down vote In case, you are using PHP7 already, the Browse other questions tagged php mysql ubuntu mysql-connect undefined-function or ask your own question. readline library not found?0What's wrong with PHP 5.4.6 and what can I do about it?0php-server setup not working1How can I resolve package conflicts when installing old version of PHP with apache2?0Ubuntu
More here: http://php.net/manual/en/function.mysql-connect.php share|improve this answer answered Mar 16 at 8:25 argoden 847 add a comment| up vote 0 down vote My solution is here (I needed just to remove the http://stackoverflow.com/questions/13825108/undefined-function-mysql-connect I configured Apache to read my .php pages from /home/user/code/php instead of /srv/http. Fatal Error: Uncaught Error: Call To Undefined Function Mysqli_connect() I posted the part that I thought was relevantI do have extension_dir="/usr/lib/php/modules:; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir extension_dir = "/usr/lib/php/modules/" ; On windows: ; extension_dir = Call To Undefined Function Mysql_connect() Windows Verify that the line to load the extension in php.ini has been uncommented.
if (λ x . Call To Undefined Function Mysql_connect() Xampp more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed A penny saved is a penny Why isn't tungsten used in supersonic aircraft?
Its a very different beast now –RiggsFolly Dec 4 '15 at 12:36 2 Why all the down-votes? How to heal religious units? Do these physical parameters seem plausible? http://back2cloud.com/call-to/php-fatal-error-call-to-undefined-function-mysql-connect-iis-7.php How to make Twisted geometry N(e(s(t))) a string How to do \widthof with a symbol When did the coloured shoulder pauldrons on stormtroopers first appear?
Human vs apes: What advantages do humans have over apes? Then type rpm-hivvphp-mysql-4.2.2-17.i386.rpm and press enter. How common is the usage of yous as a plural of you? I thought when I am installing php-mysql it should automatically be done. –nitxx Oct 8 '12 at 14:31 Did you compile and configure your php install? –piddl0r Oct 8
There are better alternatives that support parameterized queries. –pilcrow Jul 7 '12 at 14:03 | show 1 more comment 10 Answers 10 active oldest votes up vote 22 down vote Open See also MySQL: choosing an API guide and related FAQ for more information. How to prove that a paper published with a particular English transliteration of my Russian name is mine? UPDATE Since this answer still gets the occasional click I am going to update it to include PHP 7.
A word to describe meaningless exchanges in conversation How to heal religious units? oh ... To find the number of X completed, when can I subtract two numbers and when do I have to count? x x) has a type, then is the type system inconsistent?
Are there any historically significant examples? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed