Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (22.5k points)
recategorized by

I tried to run "aptitude install php5-mysql" (and restarted MySQL/Apache 2) and I am facing an 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 have been parsed.

1 Answer

0 votes
by (11.1k points)
edited by

Check PHP MYSQL module is loaded or not

<?php

    phpinfo();

?>

if it is not add the following

extension=php_mysql.dll

Interested in SQLCheck out the best online SQL course by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jan 6, 2021 in SQL by Appu (6.1k points)
0 votes
1 answer
0 votes
1 answer
asked Jul 16, 2019 in SQL by Tech4ever (20.3k points)

Browse Categories

...