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 in Other DevOps Questions by Kichu
• 19,040 points
104 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 by narikkadan
• 37,660 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 in Other DevOps Questions by Kichu
• 19,040 points
139 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 in Other DevOps Questions by Kichu
• 19,040 points
62 views
0 votes
0 answers

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

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

May 1 in Other DevOps Questions by Kichu
• 19,040 points
1,489 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
475 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
377 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
303 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,800 points
1,569 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