Installing MySQL on
Windows OS
Connecting to
Local Instance
and
UNBMySQL
Pre-requisite(s)
• Check installed programs on OS (Control Panel Program & Features)
• Visual Studio C++ Redistributable 2015 – 2019
MySQL Community Downloads
• dev.mysql.com/download
Setup Type (Developer)
Setup Type (Server)
Setup Type (Client)
Setup Type (Full)
Setup Type (Custom)
Setup Type (Custom – contd.)
Setup Type (Custom – contd.)
Setup Type (Custom – contd.)
Setup Type (Custom – contd.)
Setup Type (Custom – contd.)
Standalone vs. InnoDB Cluster
Server Configuration (Protocol, port, …)
>> netstat –na –p TCP
Authentication Setup / Accounts & Roles
Windows Service Name
Service Control Manager
>> sc query type= service
>> sc queryex type= service state= all | find /i "My"
Apply Configuration
Connect to local instance via MySQL Shell(sqlsh) and MySQL Workbench
Connect to MySQL in UNB
• Create new connection
• Select connection type
• Set user names and passwords
• Test connection and save
• Connect to databases
• Execute simple query
Connect to MySQL in UNB - Create new connection
• Launch MySQL Workbench
Local Instance (MySQL on your computer)
Click on plus button (⊕) to add UNBMySQL
connection
Connect to MySQL in UNB – Select connection type
Select connection type
Select connection type
Connect to MySQL in UNB – Set username and passwords
fcslinux.cs.unb.ca
Enter university credential
info1103.cs.unb.ca
Enter MySQL credential
(provided by instructor)
Connect to MySQL in UNB – Test connection and save
Your local MySQL instance Saved UNBMySQL instance
Connect to MySQL in UNB – Connect to database
Connection to UNBMySQL Insatnce
List of databases
List of tables in selected
database Ch01_Text
Connect to UNBMySQL via cmd (Command-Line)
Connect to university
ssh hmahdikh@fcslinux.cs.unb.ca
* enter university password
Connect to lab (ID415) and machine(10)
ssh hmahdikh@id415m10.cs.unb.ca
* enter university password
Conect to MySQL
mysql –h info1103.cs.unb.ca –u hmahdikh –p
* enter university MySQL password
Connect to database (Ch01_Text )
use Ch01_Text;
See table inside the database
show tables;
See data inside the table (AGENT)
SELECT * FROM AGENT;