3. MysqlMysql – popular open-source database– popular open-source database
management systemmanagement system
PHPPHP usually works withusually works with MysqlMysql for web-basedfor web-based
database applicationsdatabase applications
LAMPLAMP applications—Web-based applicationsapplications—Web-based applications
that usethat use LynuxLynux,, ApacheApache,, MysqlMysql, and, and
php/pearl/pythonphp/pearl/python
4. Connect to host server which has MysqlConnect to host server which has Mysql
installedinstalled
Select a databaseSelect a database
Form an SQL statementForm an SQL statement
Execute the SQL statement and (optionally)Execute the SQL statement and (optionally)
return a record setreturn a record set
Extract data from recordset using phpExtract data from recordset using php
Close connectionClose connection