Connect to MySQL database using PHP

preview_player
Показать описание
How to connect with MySQL database using PHP?
See this video to learn about the MySQL extension to enable with PHP.
In this video First How to make a connection to database after how to Connect with MySQLi Extension of mysql with PHP.
After that if Dynamic Library is not enabled since how to enable that with it.
If the library is not installed since you have to run command

sudo apt-get install php7.0-mysql
or
sudo apt-get install php-mysql (for php 5)

You can access your database.

Happy Coding, Keep Learn..

Thanks 🙏 You for Watching this video 🎞️.

Please subscribe the channel and like the video 👍, If found the video helpful.
Рекомендации по теме
Комментарии
Автор

Although I couldn't understand much of what you were saying, you helped me out tremendously from 4:01 on. Thank you. I had been banging my head against a wall trying to get my php code to connect to my mysql database. This provided the correct solution for me. For others on Ubuntu 18.04.2, the second half of this video is probably the answer you're looking for.

codedirtytome
Автор

My php.ini folder is empty. Should I still add exention=mysqli.so ? Also, I am trying to set this up using nginx, running 18.04 Ubuntu, 7.2fpm. Please help. Thank you.

jaffdady
Автор

I am getting a blank white page... Do you have any idea... Btw I can echo the text in php file... But this connection thing is giveing me a blank page

nisarggogate
Автор

helloo what ubuntu software do you use in write the php code in this video

godwinadade
Автор

This page isn’t working localhost is currently unable to handle this request.
HTTP ERROR 500

brolord
Автор

extension=php_mysql.so
this is final step right??

leoaramburu
Автор

I am getting the following error after running the index.php code:
mysqli_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
PLEASE HELP

prithvirajpatil
Автор

I have got error Call to undefined function mysqli_connect(). How to correct this?

narayanih
Автор

Sir I don't have my sqli.ini in ls after CD is conf.d

mohammedshehzaanmohammed
welcome to shbcf.ru