Mysql Workbench 6.2 Download for Mac
What is MySQL Workbench?
MySQL Workbench is a GUI tool to manage your database. You lot tin run across the tables, records in the table, y'all can create a new schema, query, etc.
If you are more of a visual person who needs to bargain with database (MySQL), MySQL Workbench is a very powerful and useful tool.
Before Installing MySQL Workbench on macOS
Before installing the MySQL Workbench, make sure you accept access to the database. It is either db in your local organisation or information technology could be a remote database in your hosting server or even cloud database such every bit AWS RDS.
In this mail service, I will exist using local MySQL server as an case. Please check out this post on installing MySQL server on your Mac.
Installing MySQL Workbench on macOS
Become to https://dev.mysql.com/downloads/workbench/
Click Download
to get the DMG installer
Once Installer is downloaded, double click the installer. When you double clicked, yous should run into the screen like below. Follow the pedagogy to drag the MySQL Workbench icon to the Application folder to complete the installation of MySQL Workbench into your system.
Launching the MySQL Workbench App
One time the MySQL Workbench is installed and when you attempt to open the app, you might see the message similar beneath. Press Open up to continue on launching the application.
Once the start upwards screen shows up, you will see a connection already added (assuming you have installed local MySQL server)
Click the Local instance 3306
. It will enquire for the password. Enter the countersign you entered when y'all ready the local MySQL server and press OK
. (You can check the Save password in keychain
. In this style you do not demand to type the password every time you access to your database)
Creating the Schema
Now you have admission to your local database server (MySQL server). You can start creating your own database. Schema is the main container of database where you put the tables. Let's attempt to create a schema. Click the Create New Schema icon (highlight in beneath screenshot)
Assign some name on your new schema. In this example, let's use test_db
every bit a schema name and press Utilize
.
You will see a dialog box to review the SQL Script to execute past an app. Basically, it volition execute an SQL statement of CREATE SCHEMA `test_db`;
Press Apply
to create a new schema.
Select Schemas
tab and verify the new schema is added.
Creating the Table
In one case schema is created, you need to create a tabular array to really shop the information in the "database".
Expand the test_db
schema and right click on the table
.
Select Create Table...
Start inbound values in the column section. This will be the identifier for the specific field in the database.
Name: cars
Enter the following entities in the tabular array.
Column | Datatype | PK | NN | UQ | BIN | UN | ZF | AI | Thousand |
id | INT(11) | Ten | X | X | X | ||||
car_model | VARCHAR(45) | ||||||||
car_brand | VARCHAR(45) |
PK - Primary Key
. Usually the "id" will be your main central.
NN - Not Goose egg
. For entities, you don't non want to have Cipher value (empty value) by the fourth dimension the tape is inserted. Put check on this if there is a specific entity you desire accept some value on it. For case, id entity must have a value always. And so for id, put check on NN
.
UQ - Unique
. If the record entered in the table needs to be unique, put check on this. For example, "id" must be unique so that when yous query for specific id, it will just return 1 event.
BIN - Binary
UN - Unsigned
ZF - ZeroFill
AI - Auto Increment
. For values yous want to automatically increment, put check on this. Typically id should have auto increase on. So every time there is a new record added, the id value will auto increment.
G - Generated
Press Utilize
and you lot will the above confirmation. Press Apply
again to add some records in your tabular array.
Get to your schema, and aggrandize the table. You should be able to encounter the table you simply created.
Access to the Table
To view the tabular array you created, go to the table y'all created.
Right click and select Select Rows - Limit thousand
At this point, the tabular array has 0 record. This is expected since the table has but created.
Adding Sample Records
In one case you have your table opened, y'all can straight add some records to it by simply double click the columns. Try entering the following records as an instance and printing Use
.
id | car_model | car_brand |
<leave this blank> | civic | honda |
<leave this blank> | corolla | toyota |
Press Utilise
to confirm the records you want to add in the table.
Note: You can leave the id column bare since this cavalcade is set to auto increment. It volition automatically assign value equally a new record is added.
Now you can run across there are ii records added in your tabular array. You can see the id is automatically added in ascending value.
If yous are using Big Sur on Apple's new Silicon M1, checkout Using MySQL Workbench on macOS Large Sur web log postal service.
Latest Posts
Mysql Workbench 6.2 Download for Mac
Posted by: kahlgought1940.blogspot.com