SlideShare a Scribd company logo
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Tech Tour
What's New In Connector/Net
+ Connector/J
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied
upon in making purchasing decisions. The development, release, and timing of any
features or functionality described for Oracle’s products remains at the sole discretion of
Oracle.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
1
2
3
4
5
What Is a MySQL Connector?
What is Connector/Net / Connector/J
Connector/Net – What’s new?
Connector/Net – Feature Highlights + Security
Connector/J – What’s new?
Connector/J - Feature Highlights + Security
Summary
3
6
7
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
1 What Is a MySQL Connector?
4
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
What is a MySQL Connector?
MySQL offers standard database driver connectivity for using MySQL with applications and tools that are
compatible with industry standards ODBC and JDBC. Any system that works with ODBC or JDBC can use MySQL.
Connector/ODBC
Standardized database driver for Windows, Linux, Mac OS X, and Unix platforms.
Connector/Net
Standardized database driver for .NET platforms and development.
Connector/J
Standardized database driver for Java platforms and development.
Connector/Python
Standardized database driver for Python platforms and development.
Connector/C++
Standardized database driver for C++ development.
Connector/C (libmysqlclient)
A client library for C development.
MySQL native driver for PHP - mysqlnd
The MySQL native driver for PHP is an additional, alternative way to connect from PHP 5.3 or newer to the
MySQL Server 4.1 or newer.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
2 What is Connector/Net + Connector/J
6
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
What Is Connector/Net
• Core ADO.Net compatible data provider
• Connection pooling
• SSL and Windows authentication support
• Mono compatible*
• Entity Framework provider
• ASP.Net web providers
• Membership, role, profile, session providers
• Visual Studio Integration
• Visual Studio 2005, 2008, & 2010
• Intellisense and syntax coloring
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
What is MySQL Connector/J?
• Pure Java/JDBC client for MySQL
• Not dependant on any C/C++ libraries like many early JDBC drivers did. Pretty
much expected nowadays.
• Supports advanced SSL, load-balancing, plug-ins
• Various configuration options for SSL including client-side authorization (to the
server), cipher suite selection, etc. SSL is becoming more important and we
should have even more stuff coming. Support for the latest JDK security
features.
• Support for scaling and HA config including load-balancing, replication, failover
and Fabric.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
What is MySQL Connector/J?
• Highly configurable performance tuning and behavioral options
• You can look at the docs for a complete list:
http://dev.mysql.com/doc/connector-j/en/connector-j-reference-
configuration-properties.html
• Lots of low-level performance tuning options, behavioral options for app-
specific convenience or certain app servers/frameworks. Lots of stuff to
support many different environments and new stuff being added constantly.
• Fits in any application being embeddable to large-scale app servers like
WebLogic & JBoss
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
3 Connector/Net – What’s new?
10
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 11
Latest releases
• MySQL Connector/Net 6.7.9, 6.8.7, 6.9.8
• Supports for .NET 3.5 – 4.5
• Available for download at dev.mysql.com
• MySQL server support starting with 5.1 to 5.7.9 versions.
• Support for Entity Framework versions
• MySQL Fabric support
• Replication with MySQL server
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 12
Replication and Load Balancing support
• Allows to connect to master/slaves environments
• Load balancing requests over all the available servers.
• Read-only queries use a load balancing behavior.
• DML queries (insert, update, delete, etc.) are sent to the master server.
• Round Robin distribution is used in Connector/NET for Load Balancing.
• Failover support: Connector/NET monitors connections to the servers,
redirecting load to available servers on each request. When a server
is back online is marked available again.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 13
Security guidelines
• SSL usage is enforced when Connector/net is used with MySQL Server 5.7.9
• SSL is the default with MySQL 5.7.9.
• Support for pem certificates on Windows.
• Supports Integrated Security on Windows with MySQL Enterprise.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
4 Connector/Net – Feature Highlights + Security
14
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Table Caching
Overview
• Supports TableDirect command types only
• Does not cause a round trip to the server
• Will be extensible in the future
– Think about memached/velocity
• Is enabled at the command level
• Does not work with SequentialAccess
• XXXX% faster than straight queries
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Table Caching
How do I use it?
It's really easy to use it in a reader
MySqlCommand cmd = new MySqlCommand(“zipcodes”, connection);
cmd.EnableCaching = true;
cmd.ExecuteReader();
Or use that command in a data adapter
MySqlDataAdapter da = new MySqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(dt);
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Windows Authentication
Features and requirements
• Supports local and domain authentication
• Requires MySQL Server 5.5 or higher (commercial)
• Supports the Integrated Security keyword
• Server supports user mapping
• User/groups
• Supports proxies
• This is NOT a full tutorial on pluggable authentication!
• Client side plugin shipped with server is not used.
• Please see http://dev.mysql.com/doc/refman/5.5/en/windows-
authentication-plugin.html
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Milliseconds support
• MySQL Server 5.6.4 and up introduced Fractional Seconds support in
DateTime, Time and TimeStamp type columns with up to 6 precision digits.
• Connector/Net can manage up to 6 also when using MySqlDateTime types to
read/write values for columns of the previous mentioned types.
• This support doesn’t affect the current behavior when using DateTime, Time
and TimeStamp with Connector/Net and any other MySQL server version.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• In the previous code If the connection string used after the security
definition does not match all the requirements, the attempt to do the
connection will throw a SecurityException before even attempting the
connection to the specified database.
• The MySqlClientPermission instance can have multiple connections
and any call to MySqlConnection.Open will not succeed if the
connection string fails at any of the specified parameters or values.
Partial Trust Support…
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
5 Connector/J – What’s new?
20
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Latest developments in MySQL Connector/J
• Support for JDBC 4.2 spec
• Support the new date/time types in Java 8. This is a "nice to have" feature for
many.
• Support for MySQL Fabric
• Notes: We support all Fabric features including authentication, HA & sharding.
• Ongoing TLS/security enhancements with better default security for MySQL
5.7
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Latest developments in MySQL Connector/J
SSL used by default when connecting to Enterprise 5.7 servers which auto-
generate SSL key pairs. The server has recently raised some of their hard-coded
security minimums and we are fully supporting these too.
Support for SHA-256 authentication vs SSL/TLS or RSA encrypted passwords.
Performance improvements including community contributions.
We've made a number of small but appreciated performance improvements
found by community members. We've also accepted a few small patches for
performance improvements from community members.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
Connector/J - Feature Highlights + Security
23
6
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Multi-host connections
• MySQL Fabric
• Fabric use cases range from basic HA (master/slave) setups for improved
manageability to large-scale setups with sharding over many master/slave
clusters. Fabric is releasing multi-node support at OOW which addresses the
SPOF factor. C/J has great support for Fabric.
• Load-balancing / Replication
• Provision of JMX (built-in Java management console) access to connection
pools allowing to perform failover and add/remove slaves at runtime.
• Replication support also supports the new multi-master configuration
required for group replication.
Connector/J - Feature Highlights + Security
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• MySQL Community built with yaSSL
• MySQL Enterprise built with OpenSSL
• MySQL 5.7 includes SSL improvements
– Automatic SSL configuration with OpenSSL
• Previous versions require manual configuration
– Increased requirements for Diffie-Hellman key exchange
• Key size minimum increased from 512 to 2048
– Command line client requires SSL when --ssl is given
– New mysql_ssl_rsa_setup utility
• Requires OpenSSL to be installed
• TLS 1.0
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Any user can connect with SSL
• MySQL 5.7 moves REQUIRE SSL et al to CREATE USER and ALTER USER statements
– Previously included with GRANT
• Users created with REQUIRE SSL will be denied access when connecting without SSL
• Additional constraints available
– REQUIRE X509
– AND ISSUER ‘issuer’
– AND SUBJECT ‘subject’
– AND CIPHER ‘cipher’
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Encrypted communications
• Establish identity of server
• Allow server to establish identity of client
• Required for regulatory and corporate policy compliance
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
SSL switches available:
• useSSL
• requireSSL
• verifyServerCertificate
• clientCertificateKeyStoreUrl
• clientCertificateKeyStoreType
• clientCertificateKeyStorePassword
• trustCertificateKeyStoreUrl
• trustCertificateKeyStoreType
• trustCertificateKeyStorePassword
• enabledSSLCipherSuites
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Agenda
Summary
29
7
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL can handle multiple development languages with our full connector support.
Further reading here: https://www.mysql.com/products/connector/
Check out the revamped MySQL Documentation! http://dev.mysql.com/
MySQL Forums :: Connector/JDBC and Java
http://forums.mysql.com/list.php?39
MySQL Connector/J Developer Guide
http://dev.mysql.com/doc/connector-j/en/
Todd Farmer’s Blog
http://mysqlblog.fivefarmers.com/
Connectors Team Blog
http://insidemysql.com/category/mysql-development/connectors/
Summary
MySQL Tech Tour 2015 - 5.7 Connector/J/Net

More Related Content

PDF
MySQL Manchester TT - Replication Features
PDF
MySQL Tech Tour 2015 - Alt Intro
PDF
MySQL Intro JSON NoSQL
PDF
MySQL Manchester TT - 5.7 Whats new
PDF
MySQL Manchester TT - MySQL Enterprise Edition
PPTX
MySQL High Availibility Solutions
PDF
MySQL 5.7: Focus on Replication
PDF
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
MySQL Manchester TT - Replication Features
MySQL Tech Tour 2015 - Alt Intro
MySQL Intro JSON NoSQL
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - MySQL Enterprise Edition
MySQL High Availibility Solutions
MySQL 5.7: Focus on Replication
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013

What's hot (20)

PDF
MySQL Enterprise Edition Overview
ODP
MySQL HA Alternatives 2010
PDF
MySQL Security
PDF
MySQL 5.7: What's New, Nov. 2015
PDF
MySQL Community and Commercial Edition
PDF
MySQL Cloud Service
PDF
OpenStack Days East -- MySQL Options in OpenStack
PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
PDF
Successful MySQL Scalability
PDF
Oracle Enterprise Manager for MySQL
PDF
MySQL for Oracle DBAs
PDF
NoSQL and MySQL: News about JSON
PDF
Oracle my sql cluster cge
PDF
Alta Disponibilidade no MySQL 5.7
PDF
1 my sql20151219-kaji_ivan
PDF
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
PDF
MySQL 5.7 Replication News
PPTX
MySQL London Tech Tour March 2015 - Embedded Database of Choice
PDF
MySQL Document Store
PPTX
Introduction to Oracle Infrastructure as a Service
MySQL Enterprise Edition Overview
MySQL HA Alternatives 2010
MySQL Security
MySQL 5.7: What's New, Nov. 2015
MySQL Community and Commercial Edition
MySQL Cloud Service
OpenStack Days East -- MySQL Options in OpenStack
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Successful MySQL Scalability
Oracle Enterprise Manager for MySQL
MySQL for Oracle DBAs
NoSQL and MySQL: News about JSON
Oracle my sql cluster cge
Alta Disponibilidade no MySQL 5.7
1 my sql20151219-kaji_ivan
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
MySQL 5.7 Replication News
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL Document Store
Introduction to Oracle Infrastructure as a Service
Ad

Viewers also liked (20)

PDF
Tiery Eyed
PDF
Oracle Compute Cloud Service快速实践
PDF
Script it
PDF
Oracle cloud ravello介绍及测试账户申请
PDF
Why MySQL High Availability Matters
PDF
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
PPTX
Application Diagnosis with Zend Server Tracing
KEY
Zend_Tool: Practical use and Extending
PPTX
MySQL Optimizer Overview
PPTX
PHP on IBM i Tutorial
PPT
PHP on Windows - What's New
PDF
MySQL in your laptop
KEY
Framework Shootout
PPTX
PHP and Platform Independance in the Cloud
PDF
A Storage Story #ChefConf2013
PDF
Oracle Compute Cloud Service介绍
PDF
MySQL Manchester TT - Security
PDF
Oracle cloud 使用云市场快速搭建小型电商网站
PDF
Zend Core on IBM i - Security Considerations
PPTX
MySQL Head to Head Performance
Tiery Eyed
Oracle Compute Cloud Service快速实践
Script it
Oracle cloud ravello介绍及测试账户申请
Why MySQL High Availability Matters
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Application Diagnosis with Zend Server Tracing
Zend_Tool: Practical use and Extending
MySQL Optimizer Overview
PHP on IBM i Tutorial
PHP on Windows - What's New
MySQL in your laptop
Framework Shootout
PHP and Platform Independance in the Cloud
A Storage Story #ChefConf2013
Oracle Compute Cloud Service介绍
MySQL Manchester TT - Security
Oracle cloud 使用云市场快速搭建小型电商网站
Zend Core on IBM i - Security Considerations
MySQL Head to Head Performance
Ad

Similar to MySQL Tech Tour 2015 - 5.7 Connector/J/Net (20)

PDF
MySQL The State of the Dolphin - jun15
PDF
My sql5.7 whatsnew_presentedatgids2015
PDF
5 razões estratégicas para usar MySQL
PDF
Using MySQL in Automated Testing
PDF
10 Razões para Usar MySQL em Startups
PDF
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
PDF
MySQL 5.7 + Java
PDF
Netherlands Tech Tour 02 - MySQL Fabric
PDF
Oracle OpenWorld - Getting started with MySQL Cluster
PDF
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
PPTX
MySQL London Tech Tour March 2015 - MySQL Fabric
PDF
OOW16 - Deploying Oracle E-Business Suite for On-Premises Cloud and Oracle Cl...
PDF
Introduction to MySQL
PDF
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
PDF
MySQL Manchester TT - Performance Tuning
PPTX
MySQL High Availability Solutions - Feb 2015 webinar
PPTX
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
PPTX
MySQL Tech Tour 2015 - Intro
PDF
MySQL & Oracle Linux Keynote at Open Source India 2014
PDF
1 architecture & design
MySQL The State of the Dolphin - jun15
My sql5.7 whatsnew_presentedatgids2015
5 razões estratégicas para usar MySQL
Using MySQL in Automated Testing
10 Razões para Usar MySQL em Startups
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
MySQL 5.7 + Java
Netherlands Tech Tour 02 - MySQL Fabric
Oracle OpenWorld - Getting started with MySQL Cluster
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
MySQL London Tech Tour March 2015 - MySQL Fabric
OOW16 - Deploying Oracle E-Business Suite for On-Premises Cloud and Oracle Cl...
Introduction to MySQL
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Manchester TT - Performance Tuning
MySQL High Availability Solutions - Feb 2015 webinar
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Tech Tour 2015 - Intro
MySQL & Oracle Linux Keynote at Open Source India 2014
1 architecture & design

More from Mark Swarbrick (20)

PDF
MySQL NoSQL Document Store
PPSX
MySQL @ the University Of Nottingham
PDF
InnoDb Vs NDB Cluster
PDF
MySQL Security & GDPR
PDF
Intro To MySQL 2019
PDF
PDF
MySQL Dublin Event Nov 2018 - MySQL 8
PDF
MySQL Dublin Event Nov 2018 - State of the Dolphin
PDF
Oracle Code Event - MySQL JSON Document Store
PDF
TLV - MySQL Security overview
PDF
TLV - MySQL Enterprise Edition + Cloud
PDF
TLV - Whats new in MySQL 8
PDF
MySQL At University Of Nottingham - 2018 MySQL Days
PDF
MySQL At Mastercard - 2018 MySQL Days
PDF
MySQL 8 - 2018 MySQL Days
PDF
MySQL Security + GDPR - 2018 MySQL Days
PDF
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
PDF
MySQL Cloud - 2018 MySQL Days
PDF
MySQL 2018 Intro - 2018 MySQL Days
PDF
MySQL + GDPR
MySQL NoSQL Document Store
MySQL @ the University Of Nottingham
InnoDb Vs NDB Cluster
MySQL Security & GDPR
Intro To MySQL 2019
MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - State of the Dolphin
Oracle Code Event - MySQL JSON Document Store
TLV - MySQL Security overview
TLV - MySQL Enterprise Edition + Cloud
TLV - Whats new in MySQL 8
MySQL At University Of Nottingham - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL Days
MySQL 8 - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL Cloud - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL Days
MySQL + GDPR

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
Programs and apps: productivity, graphics, security and other tools
20250228 LYD VKU AI Blended-Learning.pptx
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology

MySQL Tech Tour 2015 - 5.7 Connector/J/Net

  • 1. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | MySQL Tech Tour What's New In Connector/Net + Connector/J Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
  • 2. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 3. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 1 2 3 4 5 What Is a MySQL Connector? What is Connector/Net / Connector/J Connector/Net – What’s new? Connector/Net – Feature Highlights + Security Connector/J – What’s new? Connector/J - Feature Highlights + Security Summary 3 6 7
  • 4. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 1 What Is a MySQL Connector? 4
  • 5. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | What is a MySQL Connector? MySQL offers standard database driver connectivity for using MySQL with applications and tools that are compatible with industry standards ODBC and JDBC. Any system that works with ODBC or JDBC can use MySQL. Connector/ODBC Standardized database driver for Windows, Linux, Mac OS X, and Unix platforms. Connector/Net Standardized database driver for .NET platforms and development. Connector/J Standardized database driver for Java platforms and development. Connector/Python Standardized database driver for Python platforms and development. Connector/C++ Standardized database driver for C++ development. Connector/C (libmysqlclient) A client library for C development. MySQL native driver for PHP - mysqlnd The MySQL native driver for PHP is an additional, alternative way to connect from PHP 5.3 or newer to the MySQL Server 4.1 or newer.
  • 6. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 2 What is Connector/Net + Connector/J 6
  • 7. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | What Is Connector/Net • Core ADO.Net compatible data provider • Connection pooling • SSL and Windows authentication support • Mono compatible* • Entity Framework provider • ASP.Net web providers • Membership, role, profile, session providers • Visual Studio Integration • Visual Studio 2005, 2008, & 2010 • Intellisense and syntax coloring
  • 8. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | What is MySQL Connector/J? • Pure Java/JDBC client for MySQL • Not dependant on any C/C++ libraries like many early JDBC drivers did. Pretty much expected nowadays. • Supports advanced SSL, load-balancing, plug-ins • Various configuration options for SSL including client-side authorization (to the server), cipher suite selection, etc. SSL is becoming more important and we should have even more stuff coming. Support for the latest JDK security features. • Support for scaling and HA config including load-balancing, replication, failover and Fabric.
  • 9. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | What is MySQL Connector/J? • Highly configurable performance tuning and behavioral options • You can look at the docs for a complete list: http://dev.mysql.com/doc/connector-j/en/connector-j-reference- configuration-properties.html • Lots of low-level performance tuning options, behavioral options for app- specific convenience or certain app servers/frameworks. Lots of stuff to support many different environments and new stuff being added constantly. • Fits in any application being embeddable to large-scale app servers like WebLogic & JBoss
  • 10. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 3 Connector/Net – What’s new? 10
  • 11. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 11 Latest releases • MySQL Connector/Net 6.7.9, 6.8.7, 6.9.8 • Supports for .NET 3.5 – 4.5 • Available for download at dev.mysql.com • MySQL server support starting with 5.1 to 5.7.9 versions. • Support for Entity Framework versions • MySQL Fabric support • Replication with MySQL server
  • 12. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 12 Replication and Load Balancing support • Allows to connect to master/slaves environments • Load balancing requests over all the available servers. • Read-only queries use a load balancing behavior. • DML queries (insert, update, delete, etc.) are sent to the master server. • Round Robin distribution is used in Connector/NET for Load Balancing. • Failover support: Connector/NET monitors connections to the servers, redirecting load to available servers on each request. When a server is back online is marked available again.
  • 13. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 13 Security guidelines • SSL usage is enforced when Connector/net is used with MySQL Server 5.7.9 • SSL is the default with MySQL 5.7.9. • Support for pem certificates on Windows. • Supports Integrated Security on Windows with MySQL Enterprise.
  • 14. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 4 Connector/Net – Feature Highlights + Security 14
  • 15. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Table Caching Overview • Supports TableDirect command types only • Does not cause a round trip to the server • Will be extensible in the future – Think about memached/velocity • Is enabled at the command level • Does not work with SequentialAccess • XXXX% faster than straight queries
  • 16. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Table Caching How do I use it? It's really easy to use it in a reader MySqlCommand cmd = new MySqlCommand(“zipcodes”, connection); cmd.EnableCaching = true; cmd.ExecuteReader(); Or use that command in a data adapter MySqlDataAdapter da = new MySqlDataAdapter(); da.SelectCommand = cmd; da.Fill(dt);
  • 17. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Windows Authentication Features and requirements • Supports local and domain authentication • Requires MySQL Server 5.5 or higher (commercial) • Supports the Integrated Security keyword • Server supports user mapping • User/groups • Supports proxies • This is NOT a full tutorial on pluggable authentication! • Client side plugin shipped with server is not used. • Please see http://dev.mysql.com/doc/refman/5.5/en/windows- authentication-plugin.html
  • 18. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Milliseconds support • MySQL Server 5.6.4 and up introduced Fractional Seconds support in DateTime, Time and TimeStamp type columns with up to 6 precision digits. • Connector/Net can manage up to 6 also when using MySqlDateTime types to read/write values for columns of the previous mentioned types. • This support doesn’t affect the current behavior when using DateTime, Time and TimeStamp with Connector/Net and any other MySQL server version.
  • 19. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | • In the previous code If the connection string used after the security definition does not match all the requirements, the attempt to do the connection will throw a SecurityException before even attempting the connection to the specified database. • The MySqlClientPermission instance can have multiple connections and any call to MySqlConnection.Open will not succeed if the connection string fails at any of the specified parameters or values. Partial Trust Support…
  • 20. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda 5 Connector/J – What’s new? 20
  • 21. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Latest developments in MySQL Connector/J • Support for JDBC 4.2 spec • Support the new date/time types in Java 8. This is a "nice to have" feature for many. • Support for MySQL Fabric • Notes: We support all Fabric features including authentication, HA & sharding. • Ongoing TLS/security enhancements with better default security for MySQL 5.7
  • 22. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Latest developments in MySQL Connector/J SSL used by default when connecting to Enterprise 5.7 servers which auto- generate SSL key pairs. The server has recently raised some of their hard-coded security minimums and we are fully supporting these too. Support for SHA-256 authentication vs SSL/TLS or RSA encrypted passwords. Performance improvements including community contributions. We've made a number of small but appreciated performance improvements found by community members. We've also accepted a few small patches for performance improvements from community members.
  • 23. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda Connector/J - Feature Highlights + Security 23 6
  • 24. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | • Multi-host connections • MySQL Fabric • Fabric use cases range from basic HA (master/slave) setups for improved manageability to large-scale setups with sharding over many master/slave clusters. Fabric is releasing multi-node support at OOW which addresses the SPOF factor. C/J has great support for Fabric. • Load-balancing / Replication • Provision of JMX (built-in Java management console) access to connection pools allowing to perform failover and add/remove slaves at runtime. • Replication support also supports the new multi-master configuration required for group replication. Connector/J - Feature Highlights + Security
  • 25. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | • MySQL Community built with yaSSL • MySQL Enterprise built with OpenSSL • MySQL 5.7 includes SSL improvements – Automatic SSL configuration with OpenSSL • Previous versions require manual configuration – Increased requirements for Diffie-Hellman key exchange • Key size minimum increased from 512 to 2048 – Command line client requires SSL when --ssl is given – New mysql_ssl_rsa_setup utility • Requires OpenSSL to be installed • TLS 1.0
  • 26. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | • Any user can connect with SSL • MySQL 5.7 moves REQUIRE SSL et al to CREATE USER and ALTER USER statements – Previously included with GRANT • Users created with REQUIRE SSL will be denied access when connecting without SSL • Additional constraints available – REQUIRE X509 – AND ISSUER ‘issuer’ – AND SUBJECT ‘subject’ – AND CIPHER ‘cipher’
  • 27. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | • Encrypted communications • Establish identity of server • Allow server to establish identity of client • Required for regulatory and corporate policy compliance
  • 28. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | SSL switches available: • useSSL • requireSSL • verifyServerCertificate • clientCertificateKeyStoreUrl • clientCertificateKeyStoreType • clientCertificateKeyStorePassword • trustCertificateKeyStoreUrl • trustCertificateKeyStoreType • trustCertificateKeyStorePassword • enabledSSLCipherSuites
  • 29. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Agenda Summary 29 7
  • 30. Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | MySQL can handle multiple development languages with our full connector support. Further reading here: https://www.mysql.com/products/connector/ Check out the revamped MySQL Documentation! http://dev.mysql.com/ MySQL Forums :: Connector/JDBC and Java http://forums.mysql.com/list.php?39 MySQL Connector/J Developer Guide http://dev.mysql.com/doc/connector-j/en/ Todd Farmer’s Blog http://mysqlblog.fivefarmers.com/ Connectors Team Blog http://insidemysql.com/category/mysql-development/connectors/ Summary

Editor's Notes

  • #3: This is a Safe Harbor Front slide, one of two Safe Harbor Statement slides included in this template. One of the Safe Harbor slides must be used if your presentation covers material affected by Oracle’s Revenue Recognition Policy To learn more about this policy, e-mail: Revrec-americasiebc_us@oracle.com For internal communication, Safe Harbor Statements are not required. However, there is an applicable disclaimer (Exhibit E) that should be used, found in the Oracle Revenue Recognition Policy for Future Product Communications. Copy and paste this link into a web browser, to find out more information.   http://my.oracle.com/site/fin/gfo/GlobalProcesses/cnt452504.pdf For all external communications such as press release, roadmaps, PowerPoint presentations, Safe Harbor Statements are required. You can refer to the link mentioned above to find out additional information/disclaimers required depending on your audience.
  • #8: Sponsored by Xamarin, Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C#and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for development of cross platform applications.