70 likes | 257 Views
Database Concepts. CPTE 212 3/13/2014 John Beckett. Why use a database?. Self-documenting Self-organizing Extensible More data per ? More transactions per hour. How to access a database. < Write a program to read and write files DBMS included a DBML Database Management Language
E N D
Database Concepts CPTE 212 3/13/2014 John Beckett
Why use a database? • Self-documenting • Self-organizing • Extensible • More data per ? • More transactions per hour
How to access a database • < Write a program to read and write files • DBMS included a DBML Database Management Language • Standard DBML - > SQL
HW Server (Linux) HTTP GET, POST Web App Server Client HTML, Binary DB Server Prot SQL Results (Objects) DB Server Prot Database Server (MySQL)
Programming for the Web • Connect to the database server • Username / password • …implies privileges • Yields a connection object • Select a database • Send SQL • Receive results from it • Close the connection For all of these, Possibility of error result