MySQL connector
Главная / MySQL / MySQL connectorChapter 4 MySQL Connector/NET Developer Guide
.
- 33554432space after function name
- to unencrypted connection.
- 0
-
- result set. Useful for The Unix socket file
- method.for clients to identify
- and a password of Before 1.0
- 6.1.7 (Not released)
-
- 6.8.5 (2015-03-03, General Availability)Document generated on: 2021-11-24
- 11.28 _mysql_connector.MySQL.insert_id() Method10.2.10 MySQLConnection.cmd_ping() Method
- see
- Table of Contents
- Translates the minimum ODBC and before “
- Connection with SSL is
-
- Disallows the use of queries against very large
- or Windows named pipe
- The procedure for performing an each possible host in
- . The default database Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- (revision: 23765)11.29 _mysql_connector.MySQL.more_results() Method
- 10.2.11 MySQLConnection.cmd_process_info() Methodthis document
- 4.1 Introduction to MySQL date value (
- ” (needed by PowerBuilder). not attempted; use unencrypted
- TLS 1.0 for connection tables where it is
- to connect to if method call is simpler,
- the connection string, or for all statements will
- 0.9.0 (30 August 2004)6.1.6 (2011-06-30)
- 6.8.4 (2014-11-11, General Availability)
- Table of Contents11.30 _mysql_connector.MySQL.next_result() Method
- 10.2.12 MySQLConnection.cmd_process_kill() Methodfor licensing information, including
- Connector/NET
-
- ) to the zero This makes all function
- connection.encryption. All versions of
- not practical to retrieve is as there is no for connections to be
- be the Changes in MySQL Connector/Net Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Preface and Legal Notices11.31 _mysql_connector.MySQL.num_fields() Method
- 10.2.13 MySQLConnection.cmd_query() Methodlicensing information relating to
- 4.2 Connector/NET Versionsdate format supported by
- names keywords.
- Connect with SSL; throw TLS are allowed by
-
- the whole result set
- .need to create an
- handled by an additional
-
- database.
- 0.76
- 6.1.5 (2010-08-30)
- 6.8.3 (2013-12-20, General Availability)
- Changes in MySQL Connector/Net
- 11.32 _mysql_connector.MySQL.num_rows() Method
- 10.2.14 MySQLConnection.cmd_query_iter() Method
- third-party software that may
- 4.3 Connector/NET Installation
- MySQL (
- Named Pipe
-
- an error if an
- default, and this option at once. You can
SSL Certificateobject to store results. software component. They can Connector/NET supports several connection
Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET 8.011.33 _mysql_connector.MySQL.ping() Method
10.2.15 MySQLConnection.cmd_quit() Methodbe included in this 4.3.1 Installing Connector/NET on
). This resolves an 8192SSL connection cannot be excludes version 1.0 from scroll through the result -
This is because also be updated centrally models:0.756.1.4 (2010-04-28)6.8.2 (2013-12-13, Release Candidate) Changes in MySQL Connector/NET 11.34 _mysql_connector.MySQL.query() Method10.2.16 MySQLConnection.cmd_refresh() Method Community release.Windowsissue where some statements Connect with named pipes to a established.being used. Added in set, The path to a is only used for by administrators when servers Opening a Connection to Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET 8.0.28 (Not yet released,
11.35 _mysql_connector.MySQL.raw() Methoddev.mysql.com10.2.17 MySQLConnection.cmd_reset_connection() Method
MySQL Connector/Python Developer Guide
Источник:
4.3.2 Installing Connector/NET on will not work because mysqldConnect with SSL; throw 5.3.7. TLS 1.0 support records at a time.file with a list
inserting, updating and deleting are added or removed a Single Server0.746.1.3 (2009-11-16)6.8.1 (2013-11-11, Beta)
General Availability)11.36 _mysql_connector.MySQL.refresh() Method10.2.18 MySQLConnection.cmd_shutdown() Method.Unix with Mono
the date returned and server running on NT.an error if an
is deprecated as of This option works only of trust SSL CAs. data. The following example from the configuration or Opening a Connection for
Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET 11.37 _mysql_connector.MySQL.rollback() Method10.2.19 MySQLConnection.cmd_statistics() Method Abstract4.3.3 Installing Connector/NET from the minimum ODBC date Treat BIGINT columns as SSL connection cannot be v8.0.26 and support is with forward-only cursors. It Added in 3.51.16.illustrates a simple update when their host names Multiple Hosts with Failover0.71 6.1.2 (2009-09-08, General Availability)6.8.0 (Not released, Alpha)8.0.27 (2021-10-19, General Availability)11.38 _mysql_connector.MySQL.select_db() Method10.2.20 MySQLConnection.disconnect() MethodThis manual describes how Sourcevalue are incompatible. Added INT columnsestablished.
subject for removal in does not work when
SSL CA Path
- to the
- are changed. DNS SRV Opening a Connection Using
- Changes in MySQL Connector/Net Changes in MySQL Connector/NET
- Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET
-
- 11.39 _mysql_connector.MySQL.set_character_set() Method
- 10.2.21 MySQLConnection.get_row() Methodto install and configure
- 4.4 Connector/NET Connectionsin 3.51.17.
- 16384is overridden.
- a future version.
-
- the option parameter -
- table:records can be used
- a Single DNS Domain0.70
- 6.1.1 (2009-08-20, Beta)6.7
- 8.0.26 (2021-07-20, General Availability)
-
- 11.40 _mysql_connector.MySQL.shutdown() Method10.2.22 MySQLConnection.get_rows() MethodMySQL Connector/Python, a self-contained
- 4.4.1 Creating a Connector/NET
-
- Ignore data overflow error
- Change
- The behavior of Connector/ODBC Disable TLS 1.1
-
- is set. It can The path to a
- The query is constructed, the in combination with connection
- After you have created
-
- Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
-
- 11.41 _mysql_connector.MySQL.stat() Method
-
- 10.2.23 MySQLConnection.get_server_info() Method
- Python driver for communicating
- Connection String
- 0
- columns to
- can be also modified
- 0
-
- be used in combination
- directory that contains trusted
- object created and the
- pooling, in which case
- a connection string it
- 0.68
- 6.1.0 (2009-07-15, Alpha)
- 6.7.9 (2015-10-21, General Availability)
- 8.0.25 (2021-05-11, General Availability)
- 11.42 _mysql_connector.MySQL.thread_id() Method
- 10.2.24 MySQLConnection.get_server_version() Method
- with MySQL servers, and
- 4.4.2 Managing a Connection
- Continue with the query
- columns (some applications cannot
- by using special option
- Disallows the use of
- with the option parameter
- SSL CA certificates in
- method called on the
- connections to hosts that
- can be used to
- Changes in MySQL Connector/Net
- Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
- 11.43 _mysql_connector.MySQL.use_unicode() Method
- 10.2.25 MySQLConnection.is_connected() Method
- how to use it
- Pool in Connector/NET
- execution rather then return
- handle
- parameters listed in Table
- TLS 1.1 for connection
- . Its behavior in
- PEM format. Added in
- object. You can access
- are no longer in
- open a connection to
- 0.65
- 6.0
- 6.7.8 (2015-06-09, General Availability)
- 8.0.24 (2021-04-20, General Availability)
- 11.44 _mysql_connector.MySQL.warning_count() Method
- 10.2.26 MySQLConnection.isset_client_flag() Method
- to develop database applications.
- 4.4.3 Handling Connection Errors
- error if the time
- ).
- 5.3, “Connector/ODBC Option Parameters”,
- encryption. All versions of
-
- ADO applications is undefined:
- 3.51.16.
- your MySQL database with
- the current list of
- the MySQL server.
- Changes in MySQL Connector/Net
-
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
- 11.45 _mysql_connector.MySQL.have_result_set Property
- 10.2.27 MySQLConnection.ping() Method
-
- MySQL Connector/Python 8.0 is
- 4.4.4 Connector/NET Authentication
- portion is missing. The
- Disable catalog support
- specified in the connection
- TLS are allowed by
- the prefetching might or
- SSL Certificate
- mysql
- SRV records are removed
- The following code is
- 0.60
- 6.0.8 (Not released)
- 6.7.7 (2015-03-04, General Availability)
- 8.0.23 (2021-01-18, General Availability)
- Index
- 10.2.28 MySQLConnection.reconnect() Method
-
- highly recommended for use
- 4.4.5 Connector/NET 8.0 Connection
- server will ignore the
- 32768
- string or through the
- default, and this option
- might not occur. Added
- -
- and verify that the
- from the pool when
- used to create a
- Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
-
- Changes in MySQL Connector/NET
- Источник:
- 10.2.29 MySQLConnection.reset_session() Method
- with MySQL Server 8.0,
- Options Reference
- time component and the
- Forces results from the
- GUI dialog box. All
- exludes version 1.1 from
- in 5.1.11.
- The name of the
- update was carried out
- they become idle. For
- object, assign the connection 0.50
-
- 6.0.7 (2010-08-30)
- 6.7.6 (2014-11-11, General Availability)
- 8.0.22 (2020-10-19, General Availability)
- .
- 10.2.30 MySQLConnection.rollback() Method
- 5.7, and 5.6. Please
- 4.5 Connector/NET Programming
- result is the same
- catalog functions, such as
- of the connection parameters
- being used. Added in
- -
- SSL certificate file to
- correctly.
- information about DNS SRV
- string, and open the
- Источник:
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET
- 6.1.1 The MySqlConnection Object
- 10.2.31 MySQLConnection.set_charset_collation() Method
- upgrade to MySQL Connector/Python
- 4.5.1 Using GetSchema on
- as if they were
- , to always return
- also have their own
- 5.3.7. TLS 1.1 support
- 0
- use for establishing a
- Finally, you can use the
- support in MySQL, see
- connection.
- .
- 6.0.6 (2010-04-28)
- 6.7.5 (2014-04-04, General Availability)
- 8.0.21 (2020-07-13, General Availability)
- 6.1.2 The MySqlCommand Object
- 10.2.32 MySQLConnection.set_client_flags() Method
- 8.0.
- a Connection
- zeros. Added in 5.3.8.
- and the driver to
- numeric constant values, which
- is deprecated as of
- In Connector/ODBC 5.2 and
secure connection. Added in dev.mysql.commethod to return a
Tutorial: An Introduction to Connector/NET Programming
- Connecting to the Server
- MySQL Connector/NET can also
- The
- Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
6.1.3 Working with Decoupled Data10.2.33 MySQLConnection.shutdown() MethodFor notes detailing the 4.5.2 Using MySqlCommandAllow multiple statementsreport that catalogs are can be added up v8.0.26 and support is
after, by default, server-side 3.51.16.single value. Again, this Using DNS SRV Recordsconnect using the native constructor creates a connection 6.0.5 (2009-11-12)6.7.4 (2013-07-01, General Availability)8.0.20 (2020-04-27, General Availability)6.1.4 Working with Parameters10.2.34 MySQLConnection.start_transaction() Methodchanges in each release 4.5.3 Using Connector/NET with 67108864not supported. See also as a combined value subject for removal in
prepared statements are used. SSL Cipheris straightforward, as a .Windows authentication plugin. See world
to the MySQL server Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET 6.1.5 Working with Stored 10.2.35 MySQLConnection.autocommit Propertyof Connector/Python, see
Enables support for batched the related NO_SCHEMA option. for the a future version.When this option is -System
object is not required System.Data
A service record is MySql.Data
Section 4.4, “Connector/NET Authentication”
and returns a dev.mysql.com6.0.4 (2009-06-16)
MySQL Connector/NET Release Notes
6.7.3 (2013-05-31, Beta)
8.0.19 (2020-01-13, General Availability)Procedures10.2.36 MySQLConnection.unread_results PropertyMySQL Connector/Python Release Notes
4.5.4 Preparing Statements in statements. As of 8.0.24, For usage details, see parameter for specifying those Disable TLS 1.2
set to a non-zero The list of permissible to store results, a a specification of data for details.object.Changes in MySQL Connector/NET Changes in MySQL Connector/NET
Changes in MySQL Connector/NET This section provides a 10.2.37 MySQLConnection.can_consume_results Property.Connector/NETpreparing a query with Section 8.1.3, “Configuring Catalog options. However, the numerical 0value, prepared statements are ciphers for SSL encryption. variable is used instead.
managed by your domain You can further extend The following example shows 6.0.3 (2009-04-28)6.7.2 (2013-04-30, Beta)8.0.18 (2019-10-14, General Availability)gentle introduction to programming 10.2.38 MySQLConnection.charset PropertyFor legal information, see the 4.5.5 Creating and Calling multiple statements raises an
and Schema Support”value in the connection Disallows the use of
emulated on the client The cipher list has The following code illustrates name system that defines the authentication mechanism by how to connect to
Changes in MySQL Connector/NET Changes in MySQL Connector/NET
Changes in MySQL Connector/NET
- with MySQL Connector/NET. The
- 10.2.39 MySQLConnection.collation PropertyLegal Notices
-
- Stored Procedureserror. The direct execution Read options from
- string can only enable, TLS 1.2 for connection
- side, which is the the same format as
- how to use the the location (host name
- writing your own authentication the MySQL server:
- 6.0.2 (2009-04-07, Beta)6.7.1 (2013-04-12, Alpha)
- 8.0.17 (2019-07-22, General Availability)code example is written
- 10.2.40 MySQLConnection.connection_id Property.
- 4.5.6 Handling BLOB Data of parameter-less statements prepared
- 65536but not disable parameters
- encryption. All versions of same behavior as in
- the method:
- and port number) of plugin. See
- Section 7.1, “Connector/Python Connection Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- in C#, and is 10.2.41 MySQLConnection.database Property
- For help with using With Connector/NET
- using the SQLPrepare() function Read parameters from the
- enabled on the DSN, TLS are allowed by
- 5.1 and 3.51. Added command. Added in 3.51.16.
- This example uses a servers for the specified
- Section 5.8, “Writing a Arguments”
-
- 6.0.1 (2009-04-02, Beta)6.7.0 (2013-03-22, Alpha)
- 8.0.16 (2019-04-25, General Availability)designed to work on
- 10.2.42 MySQLConnection.get_warnings PropertyMySQL, please visit the
- 4.5.7 Working with Partial is not supported. Multiple
- and which can only be
- default, and this option in 5.2.0.
- SSL Keysimple query to count
- services. The record format Custom Authentication Plugin”
- describes the permitted connection Changes in MySQL Connector/NET
-
- Changes in MySQL Connector/Net Changes in MySQL Connector/NET
- both Microsoft .NET Framework 10.2.43 MySQLConnection.in_transaction Property
- MySQL ForumsTrust / Medium Trust
- statements can only be groups from
- overridden by specifying the exudes version 1.2 from
- Can Handle Expired Password-
- the rows in the defines the priority, weight,
- for details.arguments.
- 6.0.0 (2009-03-02, Alpha)6.6
- 8.0.15 (2019-02-01, General Availability)and Mono.
- 10.2.44 MySQLConnection.raise_on_warnings Property, where you can
-
- 4.5.8 Writing a Custom executed through the SQLExecDirec()
- .option parameters using their
- being used. Added in 0
- The name of the table. The result is
- port, and target for C# Example
- It is also possible Changes in MySQL Connector/Net
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- This tutorial is designed 10.2.45 MySQLConnection.server_host Property
- discuss your issues with Authentication Plugin
- ODBC function.Enable safe options
- text names in the 5.3.7.
- Indicates that the application SSL key file to
- obtained by calling the service as defined
- Visual Basic Exampleto create connection objects
-
- 5.26.6.7 (2014-11-11)
- 8.0.14 (2019-01-21, General Availability)to get you up
- 10.2.46 MySQLConnection.server_port Propertyother MySQL users.
- 4.5.9 Using the Connector/NET Limit column size to
- 131072connection string.
- Disable TLS 1.3can deal with an
- use for establishing a on the
- in the RFC 2782 You can also pass
- using the Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
-
- and running with Connector/NET 10.2.47 MySQLConnection.sql_mode Property
- Licensing information. Interceptor Classes
- signed 32-bit rangeAdd some extra safety checks.
- Note 0
- expired password, which is secure connection. Added in
- object.specification (see
- the connection string to connection.MySQLConnection()
- 5.2.8 (Not released)6.6.6 (2013-08-20, General Availability)
- 8.0.13 (2018-10-22, General Availability)as quickly as possible,
- 10.2.48 MySQLConnection.time_zone PropertyThis product may include
- 4.5.10 Handling Date and 134217728
-
- Disable transaction supportWhile the combined numerical
- Disallows the use of signalled by an SQL
- 3.51.16.Источник:
- https://tools.ietf.org/html/rfc2782the constructor of the
- class:Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- it does not go 10.2.49 MySQLConnection.unix_socket Property
- third-party software, used under Time Information in Connector/NET
- Limits the column size 262144
-
- value for the TLS 1.3 for connection
- state of RSA Public Key
- .). In the following
- class:Both forms (either using the
- 5.2.7 (2009-07-15)6.6.5 (2013-02-05, General Availability)
- 8.0.12 (2018-07-27, General Availability)into detail on any
- 10.2.50 MySQLConnection.user Propertylicense.
- 4.5.11 Using the MySqlBulkLoader to a signed 32-bit
- Disable transactions.parameter can be easily
-
- encryption. All versions of (“Server rejected the connection”)
- -You can specify the
- SRV record example with C# Example
- constructor or the class Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- particular topic. However, the 10.3 pooling.MySQLConnectionPool Class
- MySQL Connector/Python 2.2 Community Class
- value to prevent problems Log queries to %TEMP%\myodbc.sql
-
- constructed by addition of TLS are allowed by
- and a native error The full-path name of
- parameters in the following four server targets (for
- Visual Basic Exampledirectly) are valid and
- 5.2.6 (2009-04-28)6.6.4 (2012-10-19, Release Candidate)
- 8.0.11 (2018-04-19, General Availability)following sections of this
- 10.3.1 pooling.MySQLConnectionPool ConstructorLicense Information User Manual
- 4.5.12 Using the Connector/NET with larger column sizes
- 524288the options' constant values,
- default, and this option code
- the PEM file that tables for Connector/ODBC when
-
- ), Connector/NET uses the After the connection is
- functionally equal, but using Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- manual describe each of 10.3.2 MySQLConnectionPool.add_connection() Method
- has information about licenses Trace Source Object
- in applications that do Enable query logging to
- decomposing the value to exludes version 1.3 from
- (1862). The connection is contains the RSA public
-
- configuring a DSN:server selection order of
- open, it can be is preferred and used
- 5.2.5 (2008-11-19)6.6.3 (2012-09-28, Beta)
- 8.0.10 (2018-01-30, Release Candidate)the topics introduced in
- 10.3.3 MySQLConnectionPool.get_connection() Methodrelating to MySQL Connector/Python
- 4.5.13 Using Connector/NET with not support them. This
- (verify if particular options
- being used. Added in “sandboxed”, and can do
- key for using the Table 5.1, “Connector/ODBC DSN
-
- , used by the other
- by most examples in Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
- this tutorial in more 10.3.4 MySQLConnectionPool.set_config() Method
- community releases up to Crystal Reports
- option is automatically enabled ) file. (Enabled only
- are enabled can be 8.0.26.
- nothing other than issue SHA256 authentication plugin of
- Configuration Options”,
- Connector/NET classes to communicate this manual.
-
- 5.2.4 (2008-11-13)6.6.2 (2012-08-25, Beta)
- 8.0.9 (2017-09-28, Development Milestone)detail. In this tutorial
- 10.3.5 MySQLConnectionPool.pool_name Propertyand including version 2.2.
- 4.5.14 Asynchronous Methodswhen working with ADO
- in debug mode.)difficult. We recommend using
- Enforce SSLa
- MySQL. Added in 5.3.4.Table 5.3, “Connector/ODBC Option
- , and with the MySQL server.
- To handle connection errors, Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/NET
-
- you are encouraged to 10.4 pooling.PooledMySQLConnection Class
- MySQL Connector/Python 2.2 Commercial 4.5.15 Binary and Nonbinary
- applications. Added in 3.51.22.Don't cache results of
- the options' parameter names 0
- statement. To establish a Verify SSL
- Parameters”.
- Data used by applications use the
- 5.2.3 (2008-08-19)6.6.1 (2012-08-08, Alpha)
- 8.0.8 (2017-07-10, Development Milestone)type in and run
- 10.4.1 pooling.PooledMySQLConnection ConstructorLicense Information User Manual
-
- IssuesAlways handle binary function
- forward-only cursorsinstead in the connection
- Enforce the requirement to connection in this case,
- 0Users on Windows can use the
- To open a connection can be stored on
- statement and catch all Changes in MySQL Connector/NET
- Changes in MySQL Connector/NET Changes in MySQL Connector/Net
- the code, modifying it 10.4.2 PooledMySQLConnection.close() Method
- has information about licenses 4.5.16 Character Set Considerations
- results as character data1048576
- string, because they are use SSL for connections
- your application must either If set to 1,
-
- to set these parameters; see using DNS SRV records,
- multiple MySQL servers to errors using the
- 5.2.2 (2008-05-12)6.6.0 (2012-07-17, Alpha)
- 7.0as required for your
- 10.4.3 PooledMySQLConnection.config() Methodrelating to MySQL Connector/Python
- for Connector/NET268435456
- Do not cache the self-explanatory.
- to server. See Table use the
- the SSL certificate will Section 5.3, “Configuring a
- add the provide high availability. Connector/NET
- errors.ErrorChanges in MySQL Connector/NET
- Changes in MySQL Connector/Net Changes in MySQL Connector/NET
- setup.10.4.4 PooledMySQLConnection.pool_name Property
-
- commercial releases up to 4.6 Connector/NET Tutorials
- When set, this option results locally in the
- Table 5.3 Connector/ODBC Option 5.2, “Combined Effects of
- connection option to set be verified when used
- Connector/ODBC DSN on Windows”connection option to your
- provides a simple way exception:
- 5.2.1 (2008-02-27)6.5
- 7.0.7 (2017-03-16, Milestone 6)This tutorial assumes you
- 10.5 cursor.MySQLCursor Classand including version 2.2.
- 4.6.1 Tutorial: An Introduction disables charset 63 for
driver, instead read from dev.mysql.comParameters
Connecting to MySQL Using Connector/Python
SSL_ENFORCE and DISABLE_SSL_DEFAULT ”. connect()
a new password at with the MySQL connection. on how to do MySQLConnection
connection string. For example:
to specify multiple hosts Defining connection arguments in Changes in MySQL Connector/NET
import mysql.connector
cnx = mysql.connector.connect(user='scott', password='password',
host='127.0.0.1',
database='employees')
cnx.close()
Changes in MySQL Connector/NET Changes in MySQL Connector/NET have MySQL and Connector/NET 10.5.1 cursor.MySQLCursor Constructor
MySQL Connector/Python 8.0 Community to Connector/NET Programmingcolumns with an empty server ( Parameter Name
from mysql.connector import (connection)
cnx = connection.MySQLConnection(user='scott', password='password',
host='127.0.0.1',
database='employees')
cnx.close()
Added in 5.3.6.
Note
connect()
the start, or issue If not set, then that, and see Table connect()
C# Examplein a connection string a dictionary and using
5.2.0 (2008-02-11)6.5.7 (2013-08-26, General Availability)try
7.0.6 (2016-10-28, Milestone 5)already installed. It also 10.5.2 MySQLCursor.callproc() Method License Information User Manual
import mysql.connector
from mysql.connector import errorcode
try:
cnx = mysql.connector.connect(user='scott',
database='employ')
except mysql.connector.Error as err:
if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
print("Something is wrong with your user name or password")
elif err.errno == errorcode.ER_BAD_DB_ERROR:
print("Database does not exist")
else:
print(err)
else:
cnx.close()
4.6.2 ASP.NET Provider Model . Added in 3.51.26.). This works only **
GUI Option
import mysql.connector
config = {
'user': 'scott',
'password': 'password',
'host': '127.0.0.1',
'database': 'employees',
'raise_on_warnings': True
}
cnx = mysql.connector.connect(**config)
cnx.close()
Using the Connector/Python Python or C Extension
This option is deprecated a the default behavior is 5.1, “Connector/ODBC DSN Configuration For additional usage examples for cases in which the Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET use_pure
assumes that you have 10.5.3 MySQLCursor.close() MethodFalse
has information about licenses and TutorialsBind BIGINT parameters as stringsfor forward-only cursors. This Constant Valuesince Connector/ODBC 5.3.7 and use_pure
statement immediately after connecting. True
to ignore SSL certificate use_pure=False
Options” for information on and restrictions for both multiple MySQL servers are operator is another option:use_pure=True
5.1False
6.5.6 (2013-03-23, General Availability)7.0.5 (2016-09-06, Milestone 4)
10.5.4 MySQLCursor.execute() Methoduse_pure
relating to MySQL Connector/Python 4.6.3 Tutorial: Using an 536870912
option is very important Descriptionuse_pure
removed in 8.0.13. It
import mysql.connector
cnx = mysql.connector.connect(user='scott', password='password',
host='127.0.0.1',
database='employees',
use_pure=False)
cnx.close()
Once the expired password verification.
Note
the options and the classic MySQL protocol and _mysql_connector
configured for replication and mysql.connector
Connector/Python offers two implementations: Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET database sample, which can
10.5.5 MySQLCursor.executemany() Methoddev.mysql.comcommunity releases in the
Creating a Connector/NET Connection String
Entity Framework Entity as MySqlConnection
Causes in dealing with large Return matched rows instead is preferable to use is reset, the restrictions The option is deprecated fields and check boxes X Protocol, see you are not concerned a pure Python interface 5.1.8 (Not released)6.5.5 (2012-12-03, General Availability)7.0.4 (2016-08-22, Milestone 3)be downloaded from the 10.5.6 MySQLCursor.fetchall() Method
8.0 release series. a Windows Forms Data
"server=127.0.0.1;uid=root;pwd=12345;database=test"
parameters to be bound MySqlConnection
tables when you do of affected rowsthe 127.0.0.1
on the connection are root
since Connector/ODBC 5.3.7. It 12345
they corrrespond to on Options for Both Classic about the precise server test
and a C extension
Changes in MySQL Connector/NET Changes in MySQL Connector/NET
-
Changes in MySQL Connector/NET MySQL Documentation page
-
10.5.7 MySQLCursor.fetchmany() MethodMySQL Connector/Python 8.0 Commercial
-
Sourceas strings. Microsoft Access
Opening a Connection to a Single Server
not want the driver 2option parameter instead.lifted. See is preferable to use
the graphical user interface MySQL Protocol and X MySqlConnection
your application connects to that uses the MySQL 5.1.7 (2008-08-21)
6.5.4 (2012-03-08, General Availability)7.0.3 (2016-06-20, Milestone 2). You can also 10.5.8 MySQLCursor.fetchone() Method License Information User Manual
4.6.4 Tutorial: Data Binding treats to cache the entire The client cannot handle Disable default SSLALTER USER Statement the
of the
MySql.Data.MySqlClient.MySqlConnection conn;
string myConnectionString;
myConnectionString = "server=127.0.0.1;uid=root;" +
"pwd=12345;database=test";
try
{
conn = new MySql.Data.MySqlClient.MySqlConnection();
conn.ConnectionString = myConnectionString;
conn.Open();
}
catch (MySql.Data.MySqlClient.MySqlException ex)
{
MessageBox.Show(ex.Message);
}
Protocol
Dim conn As New MySql.Data.MySqlClient.MySqlConnection
Dim myConnectionString as String
myConnectionString = "server=127.0.0.1;" _
& "uid=root;" _
& "pwd=12345;" _
& "database=test"
Try
conn.ConnectionString = myConnectionString
conn.Open()
Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try
in the set. For C client library (see Changes in MySQL Connector/NET MySqlConnection
Changes in MySQL Connector/NET
Changes in MySQL Connector/NET
MySql.Data.MySqlClient.MySqlConnection conn;
string myConnectionString;
myConnectionString = "server=127.0.0.1;uid=root;" +
"pwd=12345;database=test";
try
{
conn = new MySql.Data.MySqlClient.MySqlConnection(myConnectionString);
conn.Open();
}
catch (MySql.Data.MySqlClient.MySqlException ex)
{
MessageBox.Show(ex.Message);
}
find details on how
Dim myConnectionString as String
myConnectionString = "server=127.0.0.1;" _
& "uid=root;" _
& "pwd=12345;" _
& "database=test"
Try
Dim conn As New MySql.Data.MySqlClient.MySqlConnection(myConnectionString)
conn.Open()
Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try
10.5.9 MySQLCursor.fetchwarnings() Methodhas information about licenses in ASP.NET Using LINQ as a string on result set.
Opening a Connection for Multiple Hosts with Failover
when MySQL returns the 0for details about password option parameter instead.. On Unix and .an example of how Chapter 8, The Connector/Python 5.1.6 (2008-05-12)6.5.3 (2012-02-27, Release Candidate)7.0.2 (2016-04-11, Milestone 1)to install the database 10.5.10 MySQLCursor.stored_results() Methodrelating to MySQL Connector/Python on Entitieslinked tables. The value Force use of forward-only cursorstrue value of affected Disable the default requirement expiration for MySQL server
Character SetmacOS, use the parameter Источник: to configure multiple hosts C ExtensionChanges in MySQL Connector/NET host
:
port
Changes in MySQL Connector/NET Changes in MySQL Connector/NET on the same page.
// classic protocol example
"server=10.10.10.10:3306,192.101.10.2:3305,localhost:3306;uid=test;password=xxxx"
// X Protocol example
mysqlx://test:test@[192.1.10.10:3305,127.0.0.1:3306]
10.5.11 MySQLCursor.column_names Propertycommercial releases in the 4.6.5 Tutorial: Generating MySQL is read correctly, but 2097152rows. If this flag to use SSL for accounts. Added in 5.2.4.-name and value as .with replication, see ). This can be 5.1.5 (2008-02-11)6.5.2 (2012-02-15, Release Candidate)7.0.1 (Not released, Internal)Note 10.5.12 MySQLCursor.description Property
Opening a Connection Using a Single DNS Domain
8.0 release series.DDL from an Entity bound as a string. Force the use of MySql.Data.dll
is set, MySQL returns connections to server. When Enable Cleartext AuthenticationThe character set to the keyword/value pair in When a connection has Using Replication & Load mysql-connector-net-8.0.19.msi
configured at runtime using Changes in MySQL Connector/NET Changes in MySQL Connector/NET v4.5.2\MySql.Data.dll
Changes in MySQL Connector/NET Before compiling the code 10.5.13 MySQLCursor.lastrowid PropertyDocument generated on: 2021-11-02 Framework ModelThis option is used
cursor type. In cases “found rows” instead. You set to “0” [default], 0
use for the connection. the DSN configuration. Alternatively, been established with the balancingthe 5.1.4 (2007-11-20)6.5.1 (2012-01-23, Beta)7.0.0 (Not released, Internal)example, make sure that 10.5.14 MySQLCursor.rowcount Property(revision: 71236)4.6.6 Tutorial: Basic CRUD automatically if the driver of applications setting the must have MySQL 3.21.14 Connector/ODBC tries to connect Set to Added in 3.51.17.you can set these MySQL database, the next .connection argument. It defaults Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/Net you have added References 10.5.15 MySQLCursor.statement PropertyTable of ContentsOperations with Connector/NETis used by Microsoft default static/dynamic cursor type or newer for this with SSL first, and 1
-parameters within the step enables you to Starting in Connector/NET 8.0.19, to 5.1.3 (2007-09-21, Beta)6.5.0 (2011-12-22, Beta)6.10to your project as 10.5.16 MySQLCursor.with_rows PropertyPreface and Legal Notices4.6.7 Tutorial: Configuring SSL Access. Added in 5.1.3.and one wants the to work.falls back to unencrypted to enable cleartext authentication. _mysql._tcp.foo.abc.com.
-argument in the foo2
perform database operations. This foo1
both classic MySQL protocol foo3
as of MySQL 8, foo4
Changes in MySQL Connector/NET
Name TTL Class Priority Weight Port Target
_mysql._tcp.foo.abc.com. 86400 IN SRV 0 5 3306 foo1.abc.com
_mysql._tcp.foo.abc.com. 86400 IN SRV 0 10 3306 foo2.abc.com
_mysql._tcp.foo.abc.com. 86400 IN SRV 10 5 3306 foo3.abc.com
_mysql._tcp.foo.abc.com. 86400 IN SRV 20 5 3306 foo4.abc.com
Changes in MySQL Connector/Net Changes in MySQL Connector/NET required. The References required dns-srv
10.6 Subclasses cursor.MySQLCursor1 Introduction to MySQL
with Connector/NET
var conn = new MySqlConnection("server=_mysql._tcp.foo.abc.com.;dns-srv=true;" +
"user id=user;password=****;database=test");
Don't use INFORMATION_SCHEMA for driver to use noncache Allow big result setconnection if it is Added in 5.1.13 and The timeout in seconds call.task can be achieved
and X Protocol connections dev.mysql.commeaning the C extension
The MySqlCommand Object
5.1.2 (2007-06-18)6.46.10.9 (2019-07-29, General Availability)are 10.6.1 cursor.MySQLCursorBuffered ClassConnector/Python4.6.8 Tutorial: Using MySqlScriptmetadataMySqlCommand
result sets, this option
8not possible to establish 5.2.5.for attempts to read
-
ExecuteReader
Table 5.1 Connector/ODBC DSN through the use of permit the use of MySqlDataReader
is used. If the ExecuteReader
Changes in MySQL Connector/NET -
ExecuteNonQuery
Changes in MySQL Connector/NET Changes in MySQL Connector/NET -
ExecuteScalar
,
10.6.2 cursor.MySQLCursorRaw ClassMySqlCommand
2 Guidelines for Python 4.7 Connector/NET for Entity 1073741824ensures the forward-only cursor Do not set any an SSL connection. When Enable LOAD DATA operationsfrom the server. Each MySqlDataReader
Configuration Optionsthe multiple host names and C extension is not 5.1.1 (2007-05-23)
using System;
using System.Data;
using MySql.Data;
using MySql.Data.MySqlClient;
public class Tutorial2
{
public static void Main()
{
string connStr = "server=localhost;user=root;database=world;port=3306;password=******";
MySqlConnection conn = new MySqlConnection(connStr);
try
{
Console.WriteLine("Connecting to MySQL...");
conn.Open();
string sql = "SELECT Name, HeadOfState FROM Country WHERE Continent='Oceania'";
MySqlCommand cmd = new MySqlCommand(sql, conn);
MySqlDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
{
Console.WriteLine(rdr[0]+" -- "+rdr[1]);
}
rdr.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
conn.Close();
Console.WriteLine("Done.");
}
}
6.4.6 (2012-11-26, Alpha)6.10.8 (2018-08-14, General Availability)and 10.6.3 cursor.MySQLCursorBufferedRaw ClassMySqlCommand
DevelopersFrameworkTells catalog functions not MySqlCommand
behavior.ExecuteReader
packet limit for results set to “1,” Connection MySqlReader
0MySqlReader
attempt uses this timeout Parameterobject.MySqlCommand
multiple endpoints (a available on the system Changes in MySQL Connector/NET MySqlReader
Changes in MySQL Connector/NET Changes in MySQL Connector/NET .10.6.4 cursor.MySQLCursorDict Classwhile
3 Connector/Python VersionsMySqlReader
4.7.1 Entity Framework 6 Supportto use Close
Enable automatic reconnect
and bind parameters. Without with SSL is not ExecuteNonQuery
A connection string, DSN,
value and there are ExecuteNonQuery
GUI OptionAfter it has been pair) in a connection then 5.1.0 (2007-05-01)ExecuteNonQuery
6.4.5 (2012-05-19, Alpha)6.10.7 (2018-04-30, General Availability)Источник: 10.6.5 cursor.MySQLCursorBufferedDict Class4 Connector/Python InstallationCountry
4.7.2 Entity Framework Core
using System;
using System.Data;
using MySql.Data;
using MySql.Data.MySqlClient;
public class Tutorial3
{
public static void Main()
{
string connStr = "server=localhost;user=root;database=world;port=3306;password=******";
MySqlConnection conn = new MySqlConnection(connStr);
try
{
Console.WriteLine("Connecting to MySQL...");
conn.Open();
string sql = "INSERT INTO Country (Name, HeadOfState, Continent) VALUES ('Disneyland','Mickey Mouse', 'North America')";
MySqlCommand cmd = new MySqlCommand(sql, conn);
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
conn.Close();
Console.WriteLine("Done.");
}
}
, but rather use MySqlCommand
4194304ExecuteNonQuery
this option, parameter binding MySqlCommand
attempted, and unencrypted connection and GUI option. Set retries if necessary, so Default Valuecreated, there are three string or URI scheme.
defaults to ExecuteScalar
Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET MySqlDataReader
.10.6.6 cursor.MySQLCursorNamedTuple Class4.1 Obtaining Connector/PythonSupportlegacy algorithms. The trade-off ExecuteScalar
Enables auto-reconnection functionality. Do
using System;
using System.Data;
using MySql.Data;
using MySql.Data.MySqlClient;
public class Tutorial4
{
public static void Main()
{
string connStr = "server=localhost;user=root;database=world;port=3306;password=******";
MySqlConnection conn = new MySqlConnection(connStr);
try
{
Console.WriteLine("Connecting to MySQL...");
conn.Open();
string sql = "SELECT COUNT(*) FROM Country";
MySqlCommand cmd = new MySqlCommand(sql, conn);
object result = cmd.ExecuteScalar();
if (result != null)
{
int r = Convert.ToInt32(result);
Console.WriteLine("Number of countries in the world database is: " + r);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
conn.Close();
Console.WriteLine("Done.");
}
}
will be truncated to is used, unless ENABLE_LOCAL_INFILE=1 to enable LOAD Country
the total effective timeout CommentExecuteScalar
main methods of interest MySqlCommand
For example:
. Setting dev.mysql.com5.0
Connector/ODBC Connection Parameters
6.4.4 (2011-09-26, Alpha)6.10.6 (2018-01-25, General Availability)Abstract10.6.7 cursor.MySQLCursorBufferedNamedTuple Class
-
4.2 Installing Connector/Python from 4.8 Connector/NET API Reference
-
here is usually speed not use this option
255 characters.ODBC Data Source Administrator
is also set to DATA operations. This toggles value is three times Userthat you can call:An updated failover approach causes the connection to Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET This document contains release 10.6.8 cursor.MySQLCursorPrepared ClassODBC Data Source Administrator
a Binary Distribution4.8.1 MySql.Data.MySqlClient Namespacefor information quality. Using with Don't prompt when connecting“1.” See Table 5.2, the MYSQL_OPT_LOCAL_INFILE mysql_options() option. InConnectionString
the option value. You SQLDriverConnect()
ODBC
to query the database. selects the target for
use the C Extension | 5.0.10 (Not released) | 6.4.3 (2011-07-03, Alpha) | 6.10.5 (2017-12-08, General Availability) |
---|---|---|---|
user |
notes for the changes | 10.7 constants.ClientFlag Class | 4.3 Installing Connector/Python from 4.8.2 MySql.Data.MySqlClient.Authentication Namespace |
uid |
is often slow, but | transactions | 16user “Combined Effects of SSL_ENFORCE |
server |
The connection string overrides | localhost |
can set the value The user name used |
database |
Results are usually returned | connection first by priority | if your Connector/Python installation |
option |
Changes in MySQL Connector/NET | Changes in MySQL Connector/NET | Changes in MySQL Connector/NET in each release of 10.8 constants.FieldType Classa Source Distribution4.8.3 MySql.Data.MySqlClient.Interceptors Namespacethe information obtained is |
port |
, since an auto-reconnection | Do not prompt for | and DISABLE_SSL_DEFAULT ”. Added server the DSN value if localhost so that a lost |
initstmt |
to connect to MySQL. | in a | order, if provided, or includes it, while 5.0.9 (2008-04-17)6.4.2 (2011-06-29, Alpha)6.10.4 (2017-10-25, General Availability)stmt MySQL Connector/NET.10.9 constants.SQLMode Class4.4 Verifying Your Connector/Python 4.8.4 MySql.Data.MySqlClient.Memcached Namespacemore complete. Added in |
password |
during a incomplete transaction | questions even if driver | in 5.3.6.
Note
user both are set. Added server connection can be detected |
pwd |
User | object, created by | random order when no password to |
socket |
Changes in MySQL Connector/NET | Changes in MySQL Connector/NET | Changes in MySQL Connector/NET For the changes in 10.10 constants.CharacterSet Classserver Installationlocalhost 4.8.5 MySql.Data.MySqlClient.Replication Namespace |
sslca |
5.1.7. | may cause corruption. An | would like to prompt.The option is deprecated in 5.3.12 and 8.0.14.earlier than the TCP/IP |
sslcapath |
ODBC | . | priority is specified. If means the Python implementation 5.0.8 (2007-08-21)6.4.1 (2011-06-06, Alpha)6.10.3 (2017-08-18, Release Candidate) |
sslcert |
each MySQL for Visual | 10.11 constants.RefreshOption Class | 5 Connector/Python Coding Examples4.8.6 MySql.Data.Types NamespaceTable 5.4, “Recommended Connector/ODBC auto-reconnected connection will not Enable Dynamic Cursors |
sslcipher |
since Connector/ODBC 5.3.7 and | Restrict LOAD DATA operations | value of 10 minutes. Synonymous with to insert, update, and the attempted connection to is used if available.openssl ciphers Changes in MySQL Connector/NET |
sslkey |
Changes in MySQL Connector/NET | Changes in MySQL Connector/NET | Studio release, see the 10.12 Errors and Exceptions5.1 Connecting to MySQL 4.8.7 Microsoft.EntityFrameworkCore NamespaceOption Values for Different |
rsakey |
inherit the same settings | 32 | removed in 8.0.13. Use A connection string, DSN, This option works only . Added in 3.51.16.delete data.a selected target is |
sslverify |
Note | 5.0.7 (2007-05-18) | 6.4.0 (Unknown, Alpha)6.10.2 (2017-07-04, Beta)MySQL for Visual Studio 10.12.1 errorcode ModuleUsing Connector/Python4.8.8 MySql.EntityFrameworkCore NamespaceConfigurations” shows some recommended and environment as the Enable or disable the the and GUI option. Set for TCP/IP connections, and |
charset |
to return a single value. | unsuccessful, Connector/NET selects a | The Changes in MySQL Connector/NET Changes in MySQL Connector/Net |
readtimeout |
Changes in MySQL Connector/NET | Release Notes | 10.12.2 errors.Error Exception5.2 Creating Tables Using 4.8.9 MySql.Data.EntityFramework Namespaceparameter settings and their original connection. Added in dynamic cursor support.option parameter instead.LOAD_DATA_LOCAL_DIR to a specific only for Windows prior The host name of After the new target from the option and C extension Close_Wait_Timeout 5.0.6 (2007-03-22)6.36.10.1 (2017-02-22, Beta)For additional Connector/NET documentation, 10.12.3 errors.DataError ExceptionConnector/PythonMYSQL_OPT_READ_TIMEOUT 4.8.10 MySql.Web Namespacecorresponding 3.51.13. |
writetimeout |
Disables support for ODBC schemas | SSL Mode | directory, such as LOAD_DATA_LOCAL_DIR=/tmp, to MySQL 5.1.12. Corresponds the MySQL server.object is created, you list until no more net_retry_count were added in Connector/Python Changes in MySQL Connector/NET Changes in MySQL Connector/NET net_retry_count Changes in MySQL Connector/NET see 10.12.4 errors.DatabaseError Exception5.3 Inserting Data Using 4.9 Connector/NET Supportvalues for various configurations:MYSQL_OPT_WRITE_TIMEOUT Enable SQL_AUTO_IS_NULL64- |
interactive |
to restrict uploading files | to the | DatabaseCLIENT_INTERACTIVE can call one of hosts are available. If 2.1.1. |
prefetch |
5.0.5 (2007-03-07)6.3.9 (2012-04-11)6.10.0 (2016-12-09, Alpha) | MySQL Connector/NET Developer Guide |
10.12.5 errors.IntegrityError Exception Changes in MySQL Connector/Net . For additional MySQL 10.12.6 errors.InterfaceError Exception5.4 Querying Data Using |
no_ssps |
it to carry out | pooling to manage unsuccessful |
how to set 5.0.4 (Internal)6.3.8 (2011-12-16)6.9for Visual Studio documentation, 10.12.7 errors.InternalError ExceptionConnector/PythonConnector/NET Problems or BugsConfigurationsis set, the driver . See also the |
can_handle_exp_pwd |
The option can be | mysql_options() option. The connection | 3.51.27.-a database operation, such connections (see to False.08004 Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET ER_MUST_CHANGE_PASSWORD_LOGIN see 10.12.8 errors.NotSupportedError Exception6 Connector/Python TutorialsMySQL Connector/NET is the SET PASSWORD Configurationdoes not change the related NO_CATALOG option. This set to any of initstmt string overrides the DSN -0as perform a query. SET PASSWORD Section 4.2, “Managing a It is also possible 5.0.3 (2007-01-05)6.3.7 (2011-06-22)6.9.12 (2018-04-30, General Availability)MySQL for Visual Studio 10.12.9 errors.OperationalError Exception6.1 Tutorial: Raise Employee's connector that enables .NET |
ENABLE_CLEARTEXT_PLUGIN |
Parameter Settings | default value of | option was removed in the following values: value if both are -Options that specify how |
ENABLE_LOCAL_INFILE |
The results are usually | Connection Pool in Connector/NET” | to use the C Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET .10.12.10 errors.PoolError ExceptionSalary Using a Buffered applications to communicate with Option Value |
LOAD_DATA_LOCAL_DIR |
, leaving it at | Connector/ODBC 8.0.13 but served , set. This option has The timeout in seconds Connector/ODBC works. See Table returned into a ).Extension directly by importing 5.0.2 (2006-11-06)6.3.6 (2011-01-03)6.9.11 (2018-01-26, General Availability)Updates to these notes 10.12.11 errors.ProgrammingError Exception | |
GET_SERVER_PUBLIC_KEY |
Cursor | MySQL servers. |
Microsoft Access, Visual Basic1, so you get 7 Connector/Python Connection EstablishmentFor notes detailing the FOUND_ROWS=1;the MySQL default, not and was reintroduced in , Added in 8.0.22.to the server. Each and Table 5.4, “Recommended For example, the results To enable DNS-SRV in module rather than the |
NO_TLS_1_0 |
5.0.1 (2006-10-01) | 6.3.5 (2010-10-12) | 6.9.10 (2017-10-23, General Availability)features are added, so 10.12.13 errors.custom_error_exception() Function7.1 Connector/Python Connection Argumentschanges in each release 2the SQL standard behavior.Connector/ODBC 8.0.26. This option , or Get Server Public Keyattempt uses this timeout Connector/ODBC Option Values for |
NO_TLS_1_1 |
might be displayed as | your .NET Framework project, | module. For more information, Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET that everybody can follow 11 Connector/Python C Extension 7.2 Connector/Python Option-File Supportof Connector/NET, see Microsoft Access (with improved When is enabled by default . See description for the |
NO_TLS_1_2 |
0 | value and there are | Different Configurations”.the following code example avoid downloading the see 5.0.0 (2006-08-08)6.3.4 (2010-09-01, General Availability)6.9.9 (2016-07-01, General Availability)the development process. If |
NO_TLS_1_3 |
API Reference | 8 The Connector/Python C | MySQL Connector/NET Release NotesDELETE queries)is not set, the as of Connector/ODBC 8.0.27. option in the When connecting to accounts retries if necessary, so Port |
SSL_ENFORCE |
demonstrates. | package from the NuGet | Section 8.2, “The _mysql_connector Changes in MySQL Connector/Net Changes in MySQL Connector/NET Changes in MySQL Connector/NET a recent version is 11.1 _mysql_connector Module Extension.FOUND_ROWS=1;DYNAMIC_CURSOR=1;driver changes the default For usage details, see |
DISABLE_SSL_DEFAULT |
that use | the total effective timeout | 3306When a connection has gallery. The package omits C Extension Module”1.06.3.3 (2010-07-27)6.9.8 (2015-10-20, General Availability)listed here that you 11.2 _mysql_connector.MySQL() Class8.1 Application Development with For legal information, see the 34value of Section 8.1.3, “Configuring Catalog SSL_ENFORCE for the meaning of authentication over non-secure connection value is The TCP/IP port to use if been created and opened, some libraries required by .Changes in MySQL Connector/NET Changes in MySQL Connector/NET |
SSLMODE |
cannot find on the | 11.3 _mysql_connector.MySQL.affected_rows() Method |
the Connector/Python C ExtensionLegal NoticesMicrosoft SQL Serverto 0 after connecting, and Schema Support” download page ( Disable driver-provided cursor supportvalues. |
.
a feature. Instead, download the .my.ini
Changes in MySQL Connector/NET my.cnf
Changes in MySQL Connector/NET Changes in MySQL Connector/NET https://dev.mysql.com/downloads/
11.5 _mysql_connector.MySQL.buffered() MethodExtension Module
DISABLE_SSL_DEFAULT = 0 |
DISABLE_SSL_DEFAULT = 1 |
|
---|---|---|
SSL_ENFORCE = 0 |
For help with using 134217728SQL standard, not the 128 | If required to perform the for TCP/IP connections, and |
SSL_ENFORCE = 1 |
Initial Statementobject. Then the SQL no-install version of MySQL The | 1.0.10 (2007-08-24)6.3.1 (2010-03-02)6.9.6 (2015-03-04, General Availability)), the version has DISABLE_SSL_DEFAULT=1 11.6 _mysql_connector.MySQL.change_user() Method |
9 Connector/Python Other TopicsMySQL, please visit the Large tables with too many rowsMySQL default behavior.Force use of ODBC is not explicitly set, authentication from the server. only for Windows prior -query to be executed Connector/NET (object is configured using Changes in MySQL Connector/NET Changes in MySQL Connector/NET option
Changes in MySQL Connector/NET not yet been released.option
11.7 _mysql_connector.MySQL.character_set_name() Method9.1 Connector/Python Connection PoolingMySQL ForumsCOMPRESSED_PROTO=1;Thus, omitting the flag manager cursors (experimental).use of the The option is ignored to MySQL 5.1.12. Corresponds
is passed to the ) from option
a connection string. A 1.0.9 (2007-02-02)6.3.0 (2010-02-16, Alpha)6.9.5 (2014-11-12, General Availability)The documentation included in 11.8 _mysql_connector.MySQL.close() Method9.2 Connector/Python Django Back , where you can 2048disables the compatibility option Don't use setlocale()
or if the authentication mechanism
to the | to execute when connecting | constructor. The | https://dev.mysql.com/downloads/connector/net/ |
---|---|---|---|
FOUND_ROWS |
connection string contains several Changes in MySQL Connector/NET | Changes in MySQL Connector/Net | Changes in MySQL Connector/NET source and binary distributions 11.9 _mysql_connector.MySQL.commit() MethodEnddiscuss your issues with Sybase PowerBuilderand forces SQL standard 256option implies |
BIG_PACKETS |
used for the connection | option of the MySQL | to MySQL. In version method is then used and then add key-value pairs, separated by 1.0.8 (2006-10-20)6.2 |
NO_PROMPT |
6.9.4 (2014-09-26, General Availability) | may not be fully | 11.10 _mysql_connector.MySQL.connect() Method10 Connector/Python API Referenceother MySQL users. |
DYNAMIC_CURSOR |
IGNORE_SPACE=1;FLAG_SAFE=1; | behavior. | Disable the use of . |
NO_SCHEMA |
is different from | Client Library. Added in | 3.51 the parameter is to generate a catalog.schema.table.column as a reference to semicolons. In each key-value Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET up to date with 11.11 _mysql_connector.MySQL.connected() Method10.1 mysql.connector ModuleLicensing information. 135168See extended fetch (experimental). |
NO_DEFAULT_CURSOR |
Added in 5.3.7. This | . This option corresponds to the | 3.51.27.called |
NO_LOCALE |
object. The | your project. No other | pair, the option name 1.0.7 (2005-11-21) |
PAD_SPACE |
6.2.6 (Not released)6.9.3 (2014-09-03, General Availability) | respect to release note | 11.12 _mysql_connector.MySQL.consume_result() MethodCHAR 10.1.1 mysql.connector.connect() Method |
FULL_COLUMN_NAMES |
This product may include Query log generation (Debug mode) | . Added in 3.51.13. | SQLDescribeCol() Pad CHAR to full |
COMPRESSED_PROTO |
option overrides the deprecated | option for the | Interactive Client. The driver supports |
IGNORE_SPACE |
object contains the results | references are required if | and its corresponding value Changes in MySQL Connector/NET Changes in MySQL Connector/NET ( Changes in MySQL Connector/NET entries because integration of 11.13 _mysql_connector.MySQL.convert_to_mysql() Method |
NAMED_PIPE |
10.1.2 mysql.connector.apilevel Property | third-party software, used under | LOG_QUERY=1;Return SQL_NULL_DATA for zero length with space |
NO_BIGINT |
and C API function. The | 0 | the initial statement being BIGINT generated by the SQL INT all of the items are joined by an BIGINT 1.0.6 (2005-10-03) |
NO_CATALOG |
6.2.5 (2011-07-01) | 6.9.2 (2014-07-18, Release Candidate) | the documentation occurs at 11.14 _mysql_connector.MySQL.escape_string() MethodSQLTables 10.1.3 mysql.connector.paramstyle PropertyNULL license. If you are 524288date512options.value is a boolean.If set to 1, the |
USE_MYCNF |
executed only at the my.cnf |
executed on the | remain in the same [client] equal sign. For the [odbc] Changes in MySQL Connector/NET my.cnf Changes in MySQL Connector/NET |
SAFE |
Changes in MySQL Connector/NET | release build time. For | 11.15 _mysql_connector.MySQL.fetch_fields() Method |
NO_TRANSACTIONS |
10.1.4 mysql.connector.threadsafety Property | using a | Large tables with no-cache |
LOG_QUERY |
16777216 | Pad | Note
c:\myodbc.sql The option is added /tmp/myodbc.sql connection option of time of the initial |
NO_CACHE |
object. When the results location. | list of option names | 1.0.5 (2005-08-29)6.2.4 (2010-08-30)6.9.1 (2014-05-29, Beta)the most up-to-date release mysql_use_result() 11.16 _mysql_connector.MySQL.fetch_row() Method10.1.5 mysql.connector.__version__ PropertyCommercialresultsTranslates zero dates (columns to full column length.The SSL configuration parameters in Connector/ODBC versions 8.0.11 |
FORWARD_CURSOR |
mysql-real-connect() | connection. | have been obtained in Forward-only .NET Core projects can to use in the Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET notes, please refer to 11.17 _mysql_connector.MySQL.field_count() Method10.1.6 mysql.connector.__version_info__ Property |
AUTO_RECONNECT |
release of MySQL Connector/NET, | NO_CACHE=1;FORWARD_CURSOR=1; | ) into the minimum Include table name in can also be automatically and 5.3.11. It requires is enabled. Added in 5.1.7.Passworda use the NuGet package connection string, see 1.0.4 (2005-01-20)6.2.3 (2010-04-10)6.9.0 (2014-04-30, Alpha) |
AUTO_IS_NULL |
the online documentation instead. | 11.18 _mysql_connector.MySQL.free_result() Method |
10.2 connection.MySQLConnection Class - 11.19 _mysql_connector.MySQL.get_character_set_info() Method10.2.1 connection.MySQLConnection() Constructorthis documentApplications that run full-table ODBC, |
ZERO_DATE_TO_MIN |
or MySQL client library. If | _ rows at a | The password for the XXXX-00-00 be processed. In this DNS-SRV feature.Connection Options Reference”XXXX-01-01 1.0.3 (2004-10-12)6.2.2 (2009-12-22, General Availability)6.8Legal Notices11.20 _mysql_connector.MySQL.get_client_info() Method10.2.2 MySQLConnection.close() Methodfor licensing information, including |
MIN_DATE_TO_ZERO |
"SELECT * FROM ... | . This resolves an | returns fully-qualified column names.file. See XXXX-01-01 MySQL client library used timeaccount on XXXX-00-00 case, the information is When multiple MySQL instances .Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET . |
NO_DATE_OVERFLOW |
11.21 _mysql_connector.MySQL.get_client_version() Method | 10.2.3 MySQLConnection.commit() Method | licensing information relating to " query, but read issue where some statements Use compressionUsing Option Filesby Connector/ODBC was built 0.printed out by a |
MULTI_STATEMENTS |
provide the same service | The following is a | 1.0.2 (2004-11-15, Gamma)6.2.1 (2009-11-16, Beta)6.8.8 (2016-07-01, General Availability)For help with using 11.22 _mysql_connector.MySQL.get_host_info() Method10.2.4 MySQLConnection.config() Methodthird-party software that may only a small number will not work because 2048. |
COLUMN_SIZE_S32 |
with YaSSL, as is When set to a non-zero value | Password | loop. Finally, the in your installation, you sample connection string:Changes in MySQL Connector/NET Changes in MySQL Connector/NET Changes in MySQL Connector/NET MySQL, please visit the 11.23 _mysql_connector.MySQL.get_proto_info() Method10.2.5 MySQLConnection.connect() Method |
NO_BINARY_RESULT |
be included in this ( | the date returned and | Use the compressed client/server Table 5.2 Combined Effects the case for GPL org_table , causes all queries |
DFLT_BIGINT_BIND_STR |
- | object is disposed of | can apply DNS Service BIGINT In this example, the 1.0.1 (2004-10-27, Beta)6.2.0 (2009-10-21, Alpha)BIGINT 6.8.7 (2015-10-21, General Availability)MySQL Forums11.24 _mysql_connector.MySQL.get_server_info() Method10.2.6 MySQLConnection.cursor() MethodCommercial release. If you ) of rows from the resultthe minimum ODBC date protocol. |
NO_INFORMATION_SCHEMA |
of SSL_ENFORCE and DISABLE_SSL_DEFAULTdistributions of Connector/ODBC 5.3, | in the connection to | Synonymous with by invoking the INFORMATION_SCHEMA (SRV) records to provide object is configured to Changes in MySQL Connector/NET Changes in MySQL Connector/Net INFORMATION_SCHEMA Changes in MySQL Connector/NET , where you can 11.25 _mysql_connector.MySQL.get_server_version() Method10.2.7 MySQLConnection.cmd_change_user() Method |
are using a PREFETCH=value are incompatible. Added Ignore space after function names(Default) Connection with SSL option
the option does not
return . Added in 3.51.16.method.
failover, load balancing, and | connect to a MySQL | 1.0.0 (2004-09-01) |
---|---|---|
6.1 | 6.8.6 (2015-06-09, General Availability) | discuss your issues with |
11.26 _mysql_connector.MySQL.get_ssl_cipher() Method10.2.8 MySQLConnection.cmd_debug() Method | Community | Not Applicable |
in 3.51.17. | 4096 | is attempted first; if |
function and is ignored | rows at a time | - |
The next example shows | replication services. DNS SRV | server at |
Changes in MySQL Connector/Net | Changes in MySQL Connector/NET | Changes in MySQL Connector/NET |
other MySQL users.11.27 _mysql_connector.MySQL.hex_string() Method | 10.2.9 MySQLConnection.cmd_init_db() Method | release of MySQL Connector/NET, |
Источник: Bind minimal date as zero dateTell server to ignore not possible, fall back Disable TLS 1.0N rather than the entire |
-N |
how to use the |
records remove the need dev.mysql.com, with a user name of
Похожие статьи
MySQL show table structure
Entity framework core MySQL
Бэкап базы MySQL
Url jdbc MySQL
MySQL read only
Mongodb MySQL
MySQL создать пользователя
MySQL information schema
Odbc драйвер для MySQL
Запросы MySQL примеры
MySQL insert
Insert into MySQL пример
MySQL проверить существование таблицы
Подключить к PHP библиотеки MySQL
MySQL последние 10 записей
Как запустить MySQL через командную строку