Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fundamental of Databases

Similar presentations


Presentation on theme: "Fundamental of Databases"— Presentation transcript:

1 Fundamental of Databases
Lecture 1: Introduction to MySQL T.A. Norah Alshareef

2 MySQL MySQL is a very popular, open-source relational database management system (RDBMS) "SQL", the abbreviation for Structured Query Language. Handles very large databases; very fast performance. MySQL works on many system platforms Why are we using MySQL? Free (much cheaper than Oracle!) Each student can install MySQL locally. Easy to use Shell for creating tables, querying tables, etc. Easy to use with Java JDBC Java Database Connectivity (JDBC) is an application programming interface (API) for the programming language Java, which defines how a client may access a database. It is part of the Java Standard Edition platform, from Oracle Corporation.

3 Connecting to MySQL MySQL provides an interactive shell for creating tables, inserting data, etc. On Windows, just go to c:\mysql\bin, and type: mysql Or, click on the Windows icon

4 Sample Session For example:
Enter password: ***** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 241 to server version: Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> To exit the MySQL Shell, just type QUIT or EXIT: mysql> QUIT mysql> exit

5 MySQL Installer GUI

6 Google the word MySQL

7 MySQL installer community and Web-Community

8 Start the Download

9 Figure 2.7 MySQL Installer - License Agreement
1. MySQL Installer requires you to accept the license agreement before it will install MySQL products.

10 Installing New Packages
2. Choose the appropriate Setup Type for your system. This type determines which MySQL products are initially installed on your system, or select Custom to manually choose the products. Developer: Install all products needed to develop applications with MySQL. This is the default option. Server only: Only install the MySQL server. Client only: Only install the MySQL client products, such as MySQL Workbench. This does not include the MySQL server. Full: Install all available MySQL products. Custom: Manually select the MySQL products to install, and optionally configure custom MySQL data and installation paths.

11 Figure 2.8 MySQL Installer - Choosing a Setup Type

12 check the external requirements (pre-requisites)
3. MySQL Installer checks your system for the external requirements (pre-requisites) required to install the selected MySQL products. MySQL Installer can download and install some prerequisites, but others require manual intervention. Download and install all prerequisites that have Status set to "Manual". Click Check to recheck if a manual prerequisite was installed. After manually installing those requirements, click Execute to download and install the other prerequisites. Once finished, click Next to continue.

13 Figure 2.9 MySQL Installer - Check Requirements

14 Figure 2.10 MySQL Installer - Installation Progress
3.The next window lists the MySQL products that are scheduled for installation:

15 Cont. 3.The next window lists the MySQL products that are scheduled for installation: As components are installed, their Status changes from “a progress percentage” to "Complete".

16 Configuring MySQL Server
After all components are installed, the next step configures some of the recently installed MySQL products. The Configuration Overview window displays the progress and then loads a configuration window, if required. Our example configures MySQL Server 5.6.x.

17 Figure 2.11 MySQL Installer - Configuration Overview
4. Configuring the MySQL server begins with defining several Type and Networking options. Figure 2.11 MySQL Installer - Configuration Overview

18 Advanced Configuration
4. Check Show Advanced Options to set additional Logging Options. This includes defining custom file paths for the error log, general log, slow query log (including the configuration of seconds it requires to execute a query), and the binary log.

19 Figure 2.12 MySQL Installer - MySQL Server Configuration: Type and Networking

20 Accounts and Roles 5. Next, define your MySQL account information. Assigning a root password is required. Note If the MySQL Server is already installed, then you must also enter the Current Root Password.

21 Figure 2.13 MySQL Installer - MySQL Server Configuration: User Accounts and Roles

22 Figure 2.15 MySQL Installer - MySQL Server Configuration: Windows Service

23 Next until Apply Server Configuration
Figure 2.18 MySQL Installer - MySQL Server Configuration: Apply Server Configuration

24 Apply Server Configuration, Cont.
Click Execute to execute the configuration steps. The icon for each step toggles from white to green on success, or the process stops on failure.

25 References MySQL Documentation Webpage

26 End of My Lecture Good luck


Download ppt "Fundamental of Databases"

Similar presentations


Ads by Google