Undefined function mysql connect

0 votes

I am getting this error after I ran aptitude install php5-mysql.

Fatal error: Call to undefined function mysql_connect() in /home/validate.php on line 21

Can someone help me with this issue?

Apr 30, 2022 in Other DevOps Questions by Kichu
• 19,050 points
620 views

1 answer to this question.

0 votes

See if the PHP MySQL extension module is being loaded:

<?php
    phpinfo();
?>

If it's not there then just add the following to the php.ini file:

extension=php_mysql.dll

This will help you with the issue.

answered May 1, 2022 by narikkadan
• 63,680 points

Related Questions In Other DevOps Questions

0 votes
0 answers

Call to undefined function mysql query with Login

When I run this PHP code I ...READ MORE

May 1, 2022 in Other DevOps Questions by Kichu
• 19,050 points
526 views
0 votes
0 answers

Azure function to read file from azure devops repository

I want my azure function to read ...READ MORE

Mar 28, 2022 in Other DevOps Questions by Kichu
• 19,050 points
654 views
0 votes
0 answers

Bootstrap : TypeError: $(...).modal is not a function

When I call  bootstrap modal from jquery ...READ MORE

May 1, 2022 in Other DevOps Questions by Kichu
• 19,050 points
2,916 views
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,221 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
821 views
0 votes
1 answer

Create new role - postgresql on ubuntu

If you are logged in as the postgres account, ...READ MORE

answered Mar 22, 2019 in Database by Danny
894 views
0 votes
1 answer

Fatal error: Call to undefined function mysql_connect()

Hello @kartik, You upgraded to PHP 7, and ...READ MORE

answered Nov 23, 2020 in PHP by Niroj
• 82,880 points
3,500 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP