PHP Tutorial : 21 :How to create database in php : create mysql database : how to create database

preview_player
Показать описание
A database consists of one or more tables.

You will need special CREATE privileges to create or to delete a MySQL database.

Create a MySQL Database Using MySQLi and PDO
The CREATE DATABASE statement is used to create a database in MySQL.
PHP Tutorial - 21 - create mysql database
The following examples create a database named "myDB":

Example (MySQLi Object-oriented)
Note: When you create a new database, you must only specify the first three arguments to the mysqli object (servername, username and password).

Tip: If you have to use a specific port, add an empty string for the database-name argument, like this: new mysqli("localhost", "username", "password", "", port)

-~-~~-~~~-~~-~-
Please watch: "Php hacks : How to create website step by step using php and mysql : part 8"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

sir,
I am running xamp5.6.32 on ubuntu(64 bit) 16.04

AnandKumar-znox
Автор

can u tell the name of ahtisham's channel name

naseemdurrani
welcome to shbcf.ru