What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.

Slides:



Advertisements
Similar presentations
MySQL Access Privilege System
Advertisements

Murach's MySQL, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
PHP and MySQL Database. Connecting to MySQL Note: you need to make sure that you have MySQL software properly installed on your computer before you attempt.
WebGoat & WebScarab “What is computer security for $1000 Alex?”
Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
PHP (2) – Functions, Arrays, Databases, and sessions.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
CS34311 CS3431 – Database Systems I Project Overview Murali Mani.
Website Development Working with MySQL. What you will achieve today! Connecting to mySql Creating tables in mySql Saving data on a server using mySql.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
MIS2502: Data Analytics MySQL and SQL Workbench David Schuff
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Integrating Databases into the Web with PHP/MySQL CS 4000.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Agenda What is Computer Programming? The Programming Process
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Introduction to SQL Steve Perry
Simple Database.
Python MySQL Database Access
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
HTML Hyper Text Markup Language A simple introduction.
SQL Server 2000 Acropolis Institute of Technology and Research Database fundamentals Prepared By: Rahul Patel.
Introduction to MySQL Lab no. 10 Advance Database Management System.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Index and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Most information comes from Chapter 3, MySQL Tutorial: 1 MySQL: Part.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Agenda for Class 2/20/2014 Introduce Microsoft’s SQL Server database management system. Use the lab to discuss how to CREATE, DROP and populate (INSERT)
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
Databases Kevin Wright Ben Bruckner Group 40. Outline Background Vulnerabilities Log File Cleaning This Lab.
SQL Server Microsoft SQL Server 6.5 (startup menu) We’ll use two facilities –Enterprise Manager: to build your db –ISQL_w: to run queries Use this for.
MYSQL AND MYSQL WORKBENCH MIS2502 Data Analytics.
CMPE 226 Database Systems April 19 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
Slide Set #24: Database security SY306 Web and Databases for Cyber Operations.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
Fundamental of Databases
DBMS and SQL.
Introduction to Dynamic Web Programming
Relational database and SQL MySQL LAMP SQL queries
Introduction to MySQL.
Introduction to MySQL.
mysql and mysql workbench
BASIC PHP and MYSQL Edward S. Flores.
Database Driven Websites
Chapter 8 Working with Databases and MySQL
Lecturer: Yong Liu Contact me at:
Developing a Model-View-Controller Component for Joomla Part 3
MIS2502: Data Analytics MySQL and SQL Workbench
CGS 3175: Internet Applications Fall 2009
Chapter 10 ADO.
Tutorial 6 PHP & MySQL Li Xu
Presentation transcript:

What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data in one big storeroom. This adds speed and flexibility. The tables are linked by defined relations making it possible to combine data from several tables on request. The SQL part of MySQL stands for "Structured Query Language" - the most common standardized language used to access databases) MySQL is Open Source Software (Open Source means that it is possible for anyone to use and modify. Anybody can download MySQL from the Internet and use it without paying anything. Anybody so inclined can study the source code and change it to fit their needs) The official way to pronounce MySQL is ``My Ess Que Ell''

To use MySQL, you will have had to created a MySQL server by making use of the Guava web application (https://www.wiu.edu/guava/) Once you are logged in, under the Servers menu option, select the Install New Server. Once your MySQL server is created, an e-mail will be sent to your ECOM mail account telling you your MySQL user name, password, and what port you should use to connect. (NOTE!!! Save that e-mail!!!)

One way to work with your MySQL server is via a command line interface from your Unix account on ECOM. (Later on, we will learn how to work with it via a web interface..) To get to the command interface, log in to your Unix account via SSH, then run this command from the Unix prompt: mysql -h mysql.wiu.edu -P [the port you were assigned] -u root –p You’ll be prompted for your password (the one you got e-mailed, not your Unix account password!!!) You should wind up at the mysql prompt (mysql> )

From the command line there are several MySQL commands we can use as well as issuing SQL statements. Above, I used the “show databases” command to see what databases I have available.

To create a new database we can use the SQL CREATE statement To create a new database we can use the SQL CREATE statement. Above I created a new database, “class_sched_db”

To work with a database (run queries, etc) we first need to “change” to it (tell the DBMS which database we want to work with) Above I used this command to change to the class_sched_db database: use class_sched_db

Above I used the “show tables” command to get a list of tables in the class_sched_db database. Notice how it returns an empty set. I haven’t created any tables yet!!!!!

Above, I used the CREATE statement to create a new table, the “faculty” table. Once I created it, I used the show tables command again and now I get a result back.

Using the “describe” command, I can see the information related to the “faculty” table

Above, I use the INSERT statement to put some values into my new table.

Now, I run a simple SELECT against my table and see the contents.

Above is a sample of using a text file of commands (in this case a file full of INSERT statements) to do a task. The example above, populated all of my tables with test data.

USE class_sched_db; INSERT INTO faculty VALUES('2143', 'Birkin'); INSERT INTO faculty VALUES('3487', 'Berndt'); INSERT INTO faculty VALUES('4756', 'Collins'); Above is an example of the commands we can place in a text file for execution...

Above is an example of “deleting” a row from a table.

Once we’re done with our work, we leave the MySQL interface by typing “quit”.