FATAL ERROR CALL TO UNDEFINED FUNCTION MYSQL CONNECT
deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all
What I basically did is:
apt-get remove php5apt-get install php7-*I"m using the current version of Debian Jessie.
But I still get this. There are a lot of questions here on SO and I definitely checked them all out. But I didn"t find an answer there yet.
Bạn đang xem: Fatal error call to undefined function mysql connect
tóm tắt
Improve this question
Follow
asked Dec 4, 2015 at 12:24

bytecode77bytecode77
13.8k3030 gold badges106106 silver badges139139 bronze badges
7
| Show 2 more comments
1 Answer 1
Sorted by: Reset to default
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
88
From the PHP Manual:
Warning This extension was deprecated in PHP 5.5.0, & it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide. Alternatives to this function include:
mysqli_connect()PDO::__construct()use MySQLi or PDO
share
Improve this answer
Follow
edited May 5, 2020 at 18:54

Chuck Le Butt
46.8k6161 gold badges195195 silver badges286286 bronze badges
answered Dec 4, năm ngoái at 12:29

Abhishek SharmaAbhishek Sharma
6,68911 gold badge1414 silver badges2020 bronze badges
0
địa chỉ a bình luận |
Not the answer you're looking for? Browse other questions tagged or ask your own question.
The Overflow Blog Featured on Meta
Visit chat
Linked
2693
Why shouldn't I use mysql_* functions in PHP?
3
Xem thêm: Cuốn 1: Hướng Dẫn Cách Cài Windows 7 Chi Tiết Bằng Hình Ảnh
PHP : Undefined function mysql_connect()
-3
Wordpress Fatal error after migrating from php5.6 to lớn php7
1
How khổng lồ connect khổng lồ DB và retrieve data from DB?
6
PHP interafce mysql() not working, but mysqli() is working; why?
6
I am using xampp server and trying lớn run localhost but constantly getting an error in connect.php
5
"Can't connect to MySQL vps on" error when connecting to an external MySQL server
0
Select all values from table, return them as json (using mysqli) and then parse them in objc
0
PHP error when attempting to lớn install Loganalyzer 4.1.5
0
PHP5 application is not working in PHP7 live vps (ubuntu 16.04) -
See more linked questions
Related
1158
How do I expire a PHP session after 30 minutes?
1341
"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP
1256
Reference - What does this error mean in PHP?
12
How lớn install g++ 4.9 on Debian Wheezy armel?
Hot Network Questions more hot questions

lang-php
Stack Overflow
Products
Company
Stack Exchange Network
Xem thêm: Công Ty Tnhh Giải Pháp Kinh Doanh Multi Intelligence, Tuyển Kế Toán
Site thiết kế / hình ảnh © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Rev2023.1.20.43184
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.