“ Uncaught Error: Call to undefined function mysqli_connect()”
up vote
0
down vote
favorite
I'm using mysql Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu), trying to do a simple connection to the database but whenever I try to connect to the database, I get this error.
127.0.0.1:34236 [500]: /process.php - Uncaught Error: Call to undefined function mysqli_connect() in
/home/kipo/Desktop/php-crud/process.php:3 Stack trace:
#0 {main} thrown in /home/kipo/Desktop/php-crud/process.php on line 3
please help me out. Thanks
mysql php
New contributor
add a comment |
up vote
0
down vote
favorite
I'm using mysql Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu), trying to do a simple connection to the database but whenever I try to connect to the database, I get this error.
127.0.0.1:34236 [500]: /process.php - Uncaught Error: Call to undefined function mysqli_connect() in
/home/kipo/Desktop/php-crud/process.php:3 Stack trace:
#0 {main} thrown in /home/kipo/Desktop/php-crud/process.php on line 3
please help me out. Thanks
mysql php
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using mysql Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu), trying to do a simple connection to the database but whenever I try to connect to the database, I get this error.
127.0.0.1:34236 [500]: /process.php - Uncaught Error: Call to undefined function mysqli_connect() in
/home/kipo/Desktop/php-crud/process.php:3 Stack trace:
#0 {main} thrown in /home/kipo/Desktop/php-crud/process.php on line 3
please help me out. Thanks
mysql php
New contributor
I'm using mysql Server version: 5.7.24-0ubuntu0.18.04.1 (Ubuntu), trying to do a simple connection to the database but whenever I try to connect to the database, I get this error.
127.0.0.1:34236 [500]: /process.php - Uncaught Error: Call to undefined function mysqli_connect() in
/home/kipo/Desktop/php-crud/process.php:3 Stack trace:
#0 {main} thrown in /home/kipo/Desktop/php-crud/process.php on line 3
please help me out. Thanks
mysql php
mysql php
New contributor
New contributor
edited Nov 24 at 1:24
abu_bua
3,05381023
3,05381023
New contributor
asked Nov 23 at 17:38
kiposolo
11
11
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You'd be needing to install the php-mysql package using apt.
sudo apt-get install php-mysql
From there, restart apache2
sudo service restart apache2
For a distro on systemd [If service is not a defined command], you can use:
sudo systemctl restart apache2
Your script should be working after that
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You'd be needing to install the php-mysql package using apt.
sudo apt-get install php-mysql
From there, restart apache2
sudo service restart apache2
For a distro on systemd [If service is not a defined command], you can use:
sudo systemctl restart apache2
Your script should be working after that
add a comment |
up vote
0
down vote
You'd be needing to install the php-mysql package using apt.
sudo apt-get install php-mysql
From there, restart apache2
sudo service restart apache2
For a distro on systemd [If service is not a defined command], you can use:
sudo systemctl restart apache2
Your script should be working after that
add a comment |
up vote
0
down vote
up vote
0
down vote
You'd be needing to install the php-mysql package using apt.
sudo apt-get install php-mysql
From there, restart apache2
sudo service restart apache2
For a distro on systemd [If service is not a defined command], you can use:
sudo systemctl restart apache2
Your script should be working after that
You'd be needing to install the php-mysql package using apt.
sudo apt-get install php-mysql
From there, restart apache2
sudo service restart apache2
For a distro on systemd [If service is not a defined command], you can use:
sudo systemctl restart apache2
Your script should be working after that
answered Nov 23 at 17:43
Bakare Emmanuel
262
262
add a comment |
add a comment |
kiposolo is a new contributor. Be nice, and check out our Code of Conduct.
kiposolo is a new contributor. Be nice, and check out our Code of Conduct.
kiposolo is a new contributor. Be nice, and check out our Code of Conduct.
kiposolo is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095451%2funcaught-error-call-to-undefined-function-mysqli-connect%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown