Beruflich Dokumente
Kultur Dokumente
• Step 1: Download
<Insert Picture Here>
• Step 2: Installation
• Step 3: Configuration
• Step 4: Starting/Stopping MySQL Service
• Step 5: Sanity Check
• Step 6: Securing MySQL
• Tools
• Connector
• MySQL & Windows High Availability
• MySQL Resources
About MySQL
• 14 Years of Development
• 400+ in Database Group
• 750+ Partners
• 70K+ Downloads Per Day
• 65% of 14M downloads at
mysql.com are for Windows
Step1: Download
MySQL Server Support for Windows
– Windows Vista
Step2: Installation
Installing MySQL
• Run mysql-essential-5.1.50-
win32.msi (or higher version)
• Select type of install…
– Developers select “Complete”
– DBAs select “Typical”
FYI:
The installer contains the components
as shown in the list.
Finish Installation
• Click the “Next ” several times until the
“ Wizard Completed “ screen.
• Click the “Finish” to complete the
installation.
• Leave the “Configure” box checked.
<Insert Picture Here>
Step3: Configuration
Configure MySQL Server
On the MySQL Server Instance Configuration Wizard, select the
“Detailed Configuration” and click the “Next”.
• Instance
– a running MySQL Server process
– or a MySQL Windows Service
• Instance features and properties are determined by
• Parameters
• Startup options
• Active (enabled) components
• Configuration file is my.ini
• Located in the MySQL installation directory
• Select appropriate server type.
• For a trial use, use the “Developer Machine”.
• Perhaps a new concept for some DBAs
• MySQL supports many database storage engines
• Can all run at the same time on the same MySQL
Instance
• Select Multifunction
• Select location for InnoDB files
• Performance Tips
Step4:
Starting/Stopping MySQL Service
At this point, MySQL is installed and started
as a service.
• Connect as root.
>mysql –u root -p
mysql> exit
Sample Databases
http://dev.mysql.com/doc/#sampledb
http://dev.mysql.com/doc/sakila/en/sakila.html#sakila-installation
<Insert Picture Here>
Step6: Security
MySQL Security Model
Sample
Connection
Connecting to MySQL
user1@192.168.0.10
user1@192.168.0.11
Account Management: root Accounts
– On Windows
• One root account is for connecting from the local host
• The other allows connections from any host
<Insert Picture Here>
MySQL: Tools
MySQL Workbench
• Development
– SQL Editor - Color Syntax Highlighting
– Object Management - Import/Export, Browser and Edit
– Connection Management – Wizard, Concurrent, SSH Tunnels
– Multi-Pane Results View, In-grid data edits
• Administration
– Status, Configuration, Start/Stop, Replication
– Users, Security, and Session Management
– Import/Export Dump Files
• Data Modelling
– Visual Design, Forward/Reverse Engineer
– Change Management and Documentation
Workbench includes Windows GUI
– C Core
– Coco, GTK, Win GUI elements as appropriate
• MySQL Native
– Supports all parameters and features of the current and
development server versions
• Native Connections
– TCP/IP
– Sockets / Named Pipes
– SSH
MySQL Enterprise Monitor
Hint
Connection Name – its just a label – nothing technical
Connection Methods – TCP/IP is typical
Schema == Database
<Insert Picture Here>
MySQL: Connectors
Connector/ODBC
Go to Control Panel,
Administrative Tools.
Run Data Sources (ODBC)
Click Add…,
Select the MySQL ODBC 5.1 Driver,
and Finish
Step 2
Connector/NET
1. Create project
Uses Sakila DB
catch (MySql.Data.MySqlClient.MySqlException ex)
{
TextWriter errorWriter = Console.Error;
errorWriter.WriteLine("MySQL Exception - " +
3d. Handle Errors ex.Message);
}
}
}
}
<Insert Picture Here>
Windows on MySQL
High Availability and Fault Tolerance
MySQL Replication
• Benefits
• Reliability, Performance, and Ease of Use
• Enables data from one database server (master) to be
replicated 1 or more database servers (slaves).
• Asynchronous
• Permanent connections not required
• Updates can be long-distance
• Can replicate
• All or selected databases
• Selected tables
Windows Cluster
http://www-jp.mysql.com/why-
mysql/windows/
Other Resources
Deliver MySQL-related
information such as product
release, seminars, webinars,
technical document.
Getting Started
http://dev.mysql.com/usingmysql/get_started.html
Case Studies
http://www.mysql.com/why-mysql/case-studies/
White Papers
http://www.mysql.com/why-mysql/white-papers/
MySQL Migration Toolkit
http://www.mysql.com/products/tools/migration-toolkit/
A Guide to Lower Database TCO, MySQL
http://www.mysql.com/tco
MySQL Asia Pacific Contact Information
• By Phone: Oracle Direct (Toll Free)
http://www.mysql.com/about/contact/apac.html
– Australia: 1300 366 386
– New Zealand: 0508 555 215
– Hong Kong: 800 901 039
– Macau: 0800 341
– Brunei: 800 065 then dial 6436 2417
– Indonesia: 0800 1672 253
– Japan: 0120 155 096
– Malaysia: 1800 801 1837
– Philippines: 811 5831
– Singapore: 1800 672 2531
– Sri Lanka / Colombo Metropolitan Area: 2430 0800 then dial 6436 2419
– Sri Lanka / Other Areas: 11 2430 0800 then dial 643 62419
– Thailand: 1 800 441 0545
• By Email:
– MySQL-Sales_jp@Oracle.COM