Create Database in terminal $mysql $show databases; > to check all databases $create database gitpod_db; > create database called gitpod_db $show databases; > check if the databases you created is there $use gitpod_db; > refer to the database you want to manipulate "gitpod_db" $show tables; > to check the table have inside "gitpod_db" database $create table Contact(); > to create table inside "gitpod_db" $describe Contact; > to check the entities in contact table $Select * from Contact; > to read the data existed in table "contact"
Create connection
Insert data using PHP script
- Create a file named inser_data and paste these script
- Use this include script to connect in the php connection file we just created
- Use this script to insert data;
Laravel Installer
- Go to the terminal and paste this $ composer create-project --prefer-dist laravel/laravel learning
Get the data using RESTful API