How to create a database in MySQL using PHP script
Create a database in MySQL (phpMyAdmin) using PHP script.
In this tutorial, you will learn how to create or make a database in mysql (phpmyadmin) using PHP Script or code.
So, you don't to have to open your mysql application i.e phpMyAdmin, instead we will create it by code by using its host, username and password.
Let's create a file named createdb.php and run this file after pasting below code and the database name will create as blogDB.
1st Example in (MySQLi Object-oriented)
2nd Example in (MySQLi Procedural)
We have successfully created the Database in php mysql.
Thanks for reading...
Latest PostsCreate dynamic SQL insert query in php and mysql How to Export MySQL data to excel sheet in PHP How to import excel file into mysql database in PHP How to make Registration / Signup form in php How to upload an image in PHP mysql How to make Login System with Session in PHP MySQL How to Delete data from database in php mysql How to Update Data in MySQL Database in PHP How to Fetch/Retrieve data from database in php mysql How to Insert data into database in php mysql
© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT