mysql - PHP Fatal error: Call to undefined function mysql_pconnect() in - Server Fault

I can't go on my website because I have the following nginx log error when I try to go on my website:. This website is ok on an another server configured with Debian8, PHP7 same configuration like here. If what you claim is true I believe there was some work done to build such a library, to provide backwards compatiblity. By posting your answer, you agree to the privacy policy and terms of service.

MySQL :: Fatal error: Call to undefined function mysql_connect()

Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

Tour Start 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. Log In Sign Up.

fatal error call to undefined function mysql_connect()

Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: Trader joes irvine campus hours have recently installed PHP 7.

php - Fatal error: Call to undefined function mysql_connect() - Stack Overflow

I have installed MySQL 5. How I can correct this error? Fatal error call to undefined function mysql_connect() 1, 4 16 Dev Loots 52 9. You'll need to translate your code to use PDO or mysqli instead.

mysql - PHP Fatal error : Call to undefined function mysql_connect() - Stack Overflow

Spore how to earn money in space stage This extension was deprecated in PHP 5. Use phpinfo on the debian8 server, and you'll most fatal error call to undefined function mysql_connect() see it's pointing to a PHP5 installation.

To correct the error, you've basically got two choices, either 1 modify the code to remove references to the mysql extension and use mysqli or PDO insteador 2 install an older version of PHP before PHP7 which supports the mysql extension FOLLOWUP: But that's not part of PHP7.

That would be a third party add on.

fatal error call to undefined function mysql_connect()

It's dead for a reason and everyone should stop using it. Use PDO or mysqli.

fatal error call to undefined function mysql_connect()

You'll need to use mysqli or PDO. Stephen Fox 42 8.

Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Stack Overflow works best with JavaScript enabled.

Use PDO or mysqli share improve this answer. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system