Xampp
Xampp
XAMPP
•Simple, lightweight Apache distribution that makes it extremely easy for developers to create a
local web server for testing and deployment purposes.
•Allows you to visualize and manage your databases from your browser using the phpMyAdmin
application
XAMPP installation
URL: https://www.apachefriends.org/index.html
XAMPP installation
XAMPP installation
XAMPP installation
XAMPP installation
XAMPP installation
XAMPP installation
XAMPP installation
XAMPP Control Panel
XAMPP Control Panel
Accessing phpMyAdmin
•phpMyAdmin is a database
management tool for MySQL
compatible databases.
Database manipulation in phpMyAdmin
ALTER TABLE `course` ADD FOREIGN KEY (`teacher`) REFERENCES `teacher`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
Add a user to access the DB
INSERT INTO `teacher` (`id`, `name`, `password`) VALUES ('1', 'sadeem', '11111'), ('2', 'noura', ‘2222')
INSERT INTO `course` (`id` , `name`, `teacherID`, `semester`) VALUES ('1', 'swe381', '2', 'fall2016'), ('2', 'swe381', '2', 'spring2017'), ('3', 'swe481', '1', 'fall2016'), ('4', 'swe 481', '1',
'spring2017')
Select
SELECT course.name FROM course INNER JOIN teacher ON teacher.id=course.teacherID and teacher.name='sadeem'
Delete