Руководство разработчика MySQL Connector/Python
Обзор
Это руководство описывает, как установить и настроить MySQL
Connector/Python, самодостаточный драйвер Python для связи с серверами MySQL,
и как использовать его, чтобы развивать приложения базы данных.
MySQL Connector/Python 8.0 настоятельно рекомендован для использования с
MySQL Server 8.0, 5.7, 5.6 и 5.5. Лучше обновитесь до
MySQL Connector/Python 8.0.
Для примечаний, детализирующих изменения в каждом выпуске
Connector/Python, см.
MySQL Connector/Python Release Notes.
Для юридической информации см.
Legal Notices.
Для помощи с использованием MySQL, пожалуйста, посетите
MySQL Forums,
где можно обсудить вопросы с другими пользователями MySQL.
Licensing information.
This product may include third-party software, used under license.
MySQL Connector/Python
2.2 Community License Information User Manual has information about
licenses relating to MySQL Connector/Python community releases up to
and including version 2.2.
MySQL Connector/Python
2.2 Commercial License Information User Manual has information about
licenses relating to MySQL Connector/Python commercial releases up to
and including version 2.2.
MySQL Connector/Python
8.0 Community License Information User Manual has information about
licenses relating to MySQL Connector/Python community releases in
the 8.0 release series.
MySQL Connector/Python
8.0 Commercial License Information User Manual has information about
licenses relating to MySQL Connector/Python commercial releases in
the 8.0 release series.
Document generated on:
2020-01-16
(revision: 64753)
Оглавление
- Preface and Legal Notices
-
1. Введение в MySQL Connector/Python
-
2. Рекомендации для разработчиков
-
3. Версии Connector/Python
-
4. Установка Connector/Python
-
4.1. Получение Connector/Python
-
4.2. Установка Connector/Python из двоичного дистрибутива
-
4.3. Установка Connector/Python из исходных текстов
-
4.4. Подтверждение Вашей установки Connector/Python
-
5. Примеры Connector/Python
-
5.1. Соединение с MySQL, используя Connector/Python
-
5.2. Создание таблиц используя Connector/Python
-
5.3. Вставка данных используя Connector/Python
-
5.4. Запрос данных, используя Connector/Python
-
6. Обучающие программы Connector/Python
-
6.1. Поднимите зарплату сотрудника, используя буферизированный курсор
-
7. Соединения в Connector/Python
-
7.1. Параметры связи Connector/Python
-
7.2. Поддержка файлов опций в Connector/Python
-
8. Расширение Connector/Python C
-
8.1. Разработка приложений с расширением С Connector/Python
-
8.2. Дополнительный модуль _mysql_connector C
-
9. Другие темы Connector/Python
-
9.1. Объединение связи Connector/Python
-
9.2. Connector/Python и Django
-
10. Connector/Python API
-
10.1. Модуль mysql.connector
-
10.1.1. mysql.connector.connect()
-
10.1.2. mysql.connector.apilevel
-
10.1.3. mysql.connector.paramstyle
-
10.1.4. mysql.connector.threadsafety
-
10.1.5. mysql.connector.__version__
-
10.1.6. mysql.connector.__version_info__
-
10.2. connection.MySQLConnection
-
10.2.1. Конструктор connection.MySQLConnection()
-
10.2.2. MySQLConnection.close()
-
10.2.3. MySQLConnection.commit()
-
10.2.4. MySQLConnection.config()
-
10.2.5. MySQLConnection.connect()
-
10.2.6. MySQLConnection.cursor()
-
10.2.7. MySQLConnection.cmd_change_user()
-
10.2.8. MySQLConnection.cmd_debug()
-
10.2.9. MySQLConnection.cmd_init_db()
-
10.2.10. MySQLConnection.cmd_ping()
-
10.2.11. MySQLConnection.cmd_process_info()
-
10.2.12. MySQLConnection.cmd_process_kill()
-
10.2.13. MySQLConnection.cmd_query()
-
10.2.14. MySQLConnection.cmd_query_iter()
-
10.2.15. MySQLConnection.cmd_quit()
-
10.2.16. MySQLConnection.cmd_refresh()
-
10.2.17. MySQLConnection.cmd_reset_connection()
-
10.2.18. MySQLConnection.cmd_shutdown()
-
10.2.19. MySQLConnection.cmd_statistics()
-
10.2.20. MySQLConnection.disconnect()
-
10.2.21. MySQLConnection.get_row()
-
10.2.22. MySQLConnection.get_rows()
-
10.2.23. MySQLConnection.get_server_info()
-
10.2.24. MySQLConnection.get_server_version()
-
10.2.25. MySQLConnection.is_connected()
-
10.2.26. MySQLConnection.isset_client_flag()
-
10.2.27. MySQLConnection.ping()
-
10.2.28. MySQLConnection.reconnect()
-
10.2.29. MySQLConnection.reset_session()
-
10.2.30. MySQLConnection.rollback()
-
10.2.31. MySQLConnection.set_charset_collation()
-
10.2.32. MySQLConnection.set_client_flags()
-
10.2.33. MySQLConnection.shutdown()
-
10.2.34. MySQLConnection.start_transaction()
-
10.2.35. MySQLConnection.autocommit
-
10.2.36. MySQLConnection.unread_results
-
10.2.37. MySQLConnection.can_consume_results
-
10.2.38. MySQLConnection.charset
-
10.2.39. MySQLConnection.collation
-
10.2.40. MySQLConnection.connection_id
-
10.2.41. MySQLConnection.database
-
10.2.42. MySQLConnection.get_warnings
-
10.2.43. MySQLConnection.in_transaction
-
10.2.44. MySQLConnection.raise_on_warnings
-
10.2.45. MySQLConnection.server_host
-
10.2.46. MySQLConnection.server_port
-
10.2.47. MySQLConnection.sql_mode
-
10.2.48. MySQLConnection.time_zone
-
10.2.49. MySQLConnection.unix_socket
-
10.2.50. MySQLConnection.user
-
10.3. pooling.MySQLConnectionPool
-
10.3.1. Конструктор pooling.MySQLConnectionPool
-
10.3.2. MySQLConnectionPool.add_connection()
-
10.3.3. MySQLConnectionPool.get_connection()
-
10.3.4. MySQLConnectionPool.set_config()
-
10.3.5. MySQLConnectionPool.pool_name
-
10.4. pooling.PooledMySQLConnection
-
10.4.1. Конструктор pooling.PooledMySQLConnection
-
10.4.2. PooledMySQLConnection.close()
-
10.4.3. PooledMySQLConnection.config()
-
10.4.4. PooledMySQLConnection.pool_name
-
10.5. cursor.MySQLCursor
-
10.5.1. Конструктор cursor.MySQLCursor
-
10.5.2. MySQLCursor.callproc()
-
10.5.3. MySQLCursor.close()
-
10.5.4. MySQLCursor.execute()
-
10.5.5. MySQLCursor.executemany()
-
10.5.6. MySQLCursor.fetchall()
-
10.5.7. MySQLCursor.fetchmany()
-
10.5.8. MySQLCursor.fetchone()
-
10.5.9. MySQLCursor.fetchwarnings()
-
10.5.10. MySQLCursor.stored_results()
-
10.5.11. MySQLCursor.column_names
-
10.5.12. MySQLCursor.description
-
10.5.13. MySQLCursor.lastrowid
-
10.5.14. MySQLCursor.rowcount
-
10.5.15. MySQLCursor.statement
-
10.5.16. MySQLCursor.with_rows
-
10.6. Субклассы cursor.MySQLCursor
-
10.6.1. cursor.MySQLCursorBuffered
-
10.6.2. cursor.MySQLCursorRaw
-
10.6.3. cursor.MySQLCursorBufferedRaw
-
10.6.4. cursor.MySQLCursorDict
-
10.6.5. cursor.MySQLCursorBufferedDict
-
10.6.6. cursor.MySQLCursorNamedTuple
-
10.6.7. cursor.MySQLCursorBufferedNamedTuple
-
10.6.8. cursor.MySQLCursorPrepared
-
10.7. constants.ClientFlag
-
10.8. constants.FieldType
-
10.9. constants.SQLMode
-
10.10. constants.CharacterSet
-
10.11. constants.RefreshOption
-
10.12. Ошибки и исключения
-
10.12.1. Модуль errorcode
-
10.12.2. errors.Error
-
10.12.3. errors.DataError
-
10.12.4. errors.DatabaseError
-
10.12.5. errors.IntegrityError
-
10.12.6. errors.InterfaceError
-
10.12.7. errors.InternalError
-
10.12.8. errors.NotSupportedError
-
10.12.9. errors.OperationalError
-
10.12.10. errors.PoolError
-
10.12.11. errors.ProgrammingError
-
10.12.12. errors.Warning
-
10.12.13. Функция errors.custom_error_exception()
-
11. Расширение Connector/Python C, функции API
-
11.1. Модуль _mysql_connector
-
11.2. _mysql_connector.MySQL()
-
11.3. _mysql_connector.MySQL.affected_rows()
-
11.4. _mysql_connector.MySQL.autocommit()
-
11.5. _mysql_connector.MySQL.buffered()
-
11.6. _mysql_connector.MySQL.change_user()
-
11.7. _mysql_connector.MySQL.character_set_name()
-
11.8. _mysql_connector.MySQL.close()
-
11.9. _mysql_connector.MySQL.commit()
-
11.10. _mysql_connector.MySQL.connect()
-
11.11. _mysql_connector.MySQL.connected()
-
11.12. _mysql_connector.MySQL.consume_result()
-
11.13. _mysql_connector.MySQL.convert_to_mysql()
-
11.14. _mysql_connector.MySQL.escape_string()
-
11.15. _mysql_connector.MySQL.fetch_fields()
-
11.16. _mysql_connector.MySQL.fetch_row()
-
11.17. _mysql_connector.MySQL.field_count()
-
11.18. _mysql_connector.MySQL.free_result()
-
11.19. _mysql_connector.MySQL.get_character_set_info()
-
11.20. _mysql_connector.MySQL.get_client_info()
-
11.21. _mysql_connector.MySQL.get_client_version()
-
11.22. _mysql_connector.MySQL.get_host_info()
-
11.23. _mysql_connector.MySQL.get_proto_info()
-
11.24. _mysql_connector.MySQL.get_server_info()
-
11.25. _mysql_connector.MySQL.get_server_version()
-
11.26. _mysql_connector.MySQL.get_ssl_cipher()
-
11.27. _mysql_connector.MySQL.hex_string()
-
11.28. _mysql_connector.MySQL.insert_id()
-
11.29. _mysql_connector.MySQL.more_results()
-
11.30. _mysql_connector.MySQL.next_result()
-
11.31. _mysql_connector.MySQL.num_fields()
-
11.32. _mysql_connector.MySQL.num_rows()
-
11.33. _mysql_connector.MySQL.ping()
-
11.34. _mysql_connector.MySQL.query()
-
11.35. _mysql_connector.MySQL.raw()
-
11.36. _mysql_connector.MySQL.refresh()
-
11.37. _mysql_connector.MySQL.rollback()
-
11.38. _mysql_connector.MySQL.select_db()
-
11.39. _mysql_connector.MySQL.set_character_set()
-
11.40. _mysql_connector.MySQL.shutdown()
-
11.41. _mysql_connector.MySQL.stat()
-
11.42. _mysql_connector.MySQL.thread_id()
-
11.43. _mysql_connector.MySQL.use_unicode()
-
11.44. _mysql_connector.MySQL.warning_count()
-
11.45. _mysql_connector.MySQL.have_result_set
- Index
|
|