













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
MySQL is a popular open source relational database management system known for its cross-platform compatibility, high performance, and cost-effectiveness. In this document, we explore the strengths of MySQL compared to other relational databases, the role of MySQL Workbench as a visual database designing and modeling access tool, and the installation process for MySQL Workbench on Windows. We will also touch upon the importance of MySQL Workbench as an interface for working with databases more easily and in a more structured way.
Typology: Cheat Sheet
1 / 21
This page cannot be seen from the preview
Don't miss anything!














MySQL is an open source relational database. MySQL is cross platform which means it runs on a number of different platforms such as Windows, Linux, and Mac OS etc. In this MySQL Workbench tutorial, you will learn- What is MySQL? Why use MySQL? Introducing MySQL Workbench MySQL workbench- Modeling and Design tool MySQL workbench – SQL development tool How To Use MySQL Workbench – Administration tool Install MySQL workbench Guide
There are a number of relational database management systems on the market. Examples of relational databases include Microsoft SQL Server, Microsoft Access, Oracle, DB2 etc. One may ask why we would choose MySQL over the other database management systems. The answer to this question depends on a number of factors. Let’s look at the strengths of MySQL compared to over relational databases such as SQL Server –
MySQL supports multiple storage engines each with its own specifications while other systems like SQL server only support a single storage engine. In order to appreciate this statement, let’s look at two of the storage engines supported by MySQL. InnoDB: – its default storage engine provided with MySQL as of version 5.5. InnoDB supports foreign keys for referential integrity and also supports ACID-standard transactions. MyISAM: – it was the default storage engine for MySQL prior to version 5.5. MyISAM lacks support for transactions. Its advantages over InnoDB include simplicity and high performance. MySQL has high performance compared to other relation database systems. This is due to its simplicity in design and support for multiple-storage engines. Cost effective, it’s relatively cheaper in terms of cost when compared to other relational databases. In fact, the community edition is free. The commercial edition has a licensing fee which is also cost effective compared to licensing fees for products such as Microsoft SQL Server. Cross platform – MySQL works on many platforms which means it can be deployed on most machines. Other systems such as MS SQL Server only run on the windows platform. In order to interact with MySQL, you will need a server access tool that can communicate with MySQL server. MySQL supports multiple user connections.
MySQL Workbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions. The purpose of MySQL workbench is to provide the interface to work with databases more easily and in a more structured way.
Structured Query Language (SQL) allows us to manipulate our relational databases. SQL is at the heart of all relational databases. MySQLworkbench, has built in SQL visual editor. The Visual SQL editor allows developers to build, edit and run queries against MySQL server databases. It has utilities for viewing data and exporting it.
Its syntax color highlighters help developers easily write and debug SQL statements. Multiple queries can be run and results automatically displayed in different tabs. The queries are also saved in the history panel for later retrieval and running. The figure shown below shows the SQL development window for MySQL Workbench.
Server administration plays a critical role in securing the data of the company. The major issues concerning server administration are users’ management, server configuration, server logs and many more. Workbench MySQL has the following features that simplify the process of MySQL server administration; User administration – visual utility for managing users that lets database administrators easily add new and remove existing users if need arises, grant and drop privileges and view user profiles. Server configuration – allows for advanced configuration of the server and fine tuning for optimal performance. Database backup and restorations – visual tool for exporting/importing MySQL dump files. MySQL dump files contain SQL scripts for creating databases, tables, views, stored procedures and insertion of data. Server logs – visual tool for viewing MySQL server logs. The logs include error logs, binary logs and InnodDB logs. These logs come in handy when performing diagnosis on the server. The figure shown below shows the modeling window for MySQL Workbench. The figure shown below shows the Admin panel for Workbench MySQL.
Once you have finished installing above you need to set up MySQL Workbench as shown below- Following is a step by step process on How to Install MySQL workbench. Step 1) Open Home Window First step is launching the Workbench MySQL. What you see is called Home Window
Step 2) Open New Connection Wizard Next you need to create your MySQL Server Connection which contains details about target database server including how to connect to it. Click ” + “ in MySQL Workbench Home Window. This will open Setup New Connection. Wizard
Step 4) Click Next button to continue A new window opens named Configure Local Management. Click Next button to continue.
Step 5) Enter your password and press OK Next the Wizard will test connections to database. If test fails, go back and correct database connection parameters.5. Next it will open a pop up window asking your root password to test your connection with the local mysql server instance. The password is the one you set during installation of MySQL Workbench. Enter your password and press OK
Step 7) Click Next After that a new wizard will open about Local Service Management – It lets you switch between multiple mysql severs installed on one machines. As a beginner you can bypass this and click Next to continue.
Step 8) Select MySQL Server Configuration File The Wizard will then check ability to access MySQL Server Configuration File, and test start/stop commands.
Step 10) Click on Test Connection Next Step is to setup a connection, which can be used to connect to server. If you have not created a connection already, you can use the default values given. Click on Test Connection [ 2 ] after entering the Connection Name [ 1 ].
Step 11) Click OK A new dialog box will open asking you password to root/selected user. If your MySQL root user has a password, you can enter that using Store in Vault feature. Click OK.
A new instance is shown in the homepage.
Double click and start querying.
MySQL is an open source relational database that is cross platform. MySQL supports multiple storage engines which greatly improve the server performance tuning and flexibility. Prior to version 5.5, the default storage engine was MyISAM which lacked support for transactions, as of version 5.5; the default storage engine is InnoDB which supports transactions and foreign keys. MySQL server can be administered using a number of server access mysql tools which include both commercial and open source products. Popular examples include; phpMyAdmin – cross platform web based open source server access tool SQLYog – targeted at the windows platform, desktop commercial server access tool