Python是一种动态编程语言,这完全是企业的准备,这主要是由于各种支持模块扩展其功能是提供给。为了建立生产力和功能丰富的Python应用程序,我们需要使用MySQL的Python中,一个模块,我们的应用程序提供数据库支持。虽然您可能熟悉MySQL中访问数据,在这里你将学习如何访问Python的数据有效地通过MySQL。
这本书演示了如何提高你的Python应用程序的生产力,他们结合MySQL数据库服务器,在世界上最强大的开源数据库。它会教你轻松访问Python的MySQL使用一个实际的,动手的方法库,在你的MySQL数据库服务器的数据。离开理论的课堂,这本书使用真实世界的代码来解决现实世界中的问题与现实世界的解决方案。
这本书开始探索的Python安装在不同的平台上的MySQL的各种手段和如何使用简单的数据库查询技术,以提高你的程序。然后,它需要你通过插入数据,数据检索,错误处理技术来创建健壮的程序。书中还包括数据库和用户创建和管理的访问控制的自动化。作为这本书的过程中,您将学习如何使用MySQL的许多更先进的功能,促进通过有效的管理你的数据库的Python Python的。每章的一个项目,您可以部署在自己的情况说明。
由这本书的结尾,你就会知道你的Python应用程序与MySQL接口有效,以便通过Python的强大的数据库管理变得容易实现的,易于维护的几种技术。
一步一步的例子包装,以有效管理你的MySQL数据库,通过Python的一个实用手册
从这本书中你将学到:
探索各种途径,为Python的MySQL安装使用一个鸡蛋,解开一个tarball
查询数据库,并通过MySQL,Python的检索记录
实施数据插入到MySQL数据库在Python
开展在MySQL Python的错误处理,以确保方案的鲁棒性
使用安全登录技术来记录你的用户如何使用你的程序
进行记录由记录检索,检索数据的同时,节省大量的开销
大量使用迭代数据处理插入和executemany功能
自动化的数据库和表的创建和删除使用MySQL的Python
使用MySQL的Python库自动创建用户和管理访问控制
登录用户的活动,为Python的MySQL使用MySQL的日期和时间支持
请参阅如何修改数据库的方案,以包括更多的功能
使用聚合函数,使MySQL起飞您的Web服务器的负担
保存脚本的时间和处理资源的联接和子查询
途径
这是一个实用,教程式的书,其中包括许多例子来演示Python的MySQL的全部潜力。每章开始使用MySQL的Python与各个领域的解释和使用编程调用刚刚学会的一个示例应用程序的工作结束。所有复杂的概念被打破,是很容易理解。
一切都在这本书旨在帮助你学习和使用Python的MySQL来解决您的编程需求,尽可能以最快的方式。
这本书是写给谁
这本书是Python的中间用户谁想要轻松通过Python访问到他们的MySQL数据库。如果你是一个Python程序员,谁愿意在你的Python应用程序中的数据库支持,那么这本书是为你。这本书是一个必须阅读集中Python库的MySQL的每个用户都希望现实世界的应用程序,使用这个强大的Python和MySQL的组合。
Python is a dynamic programming language, which is completely enterprise ready, owing largely to the variety of support modules that are available to extend its capabilities. In order to build productive and feature-rich Python applications, we need to use MySQL for Python, a module that provides database support to our applications. Although you might be familiar with accessing data in MySQL, here you will learn how to access data through MySQL for Python efficiently and effectively.
This book demonstrates how to boost the productivity of your Python applications by integrating them with the MySQL database server, the world’s most powerful open source database. It will teach you to access the data on your MySQL database server easily with Python’s library for MySQL using a practical, hands-on approach. Leaving theory to the classroom, this book uses real-world code to solve real-world problems with real-world solutions.
The book starts by exploring the various means of installing MySQL for Python on different platforms and how to use simple database querying techniques to improve your programs. It then takes you through data insertion, data retrieval, and error-handling techniques to create robust programs. The book also covers automation of both database and user creation, and administration of access controls. As the book progresses, you will learn to use many more advanced features of Python for MySQL that facilitate effective administration of your database through Python. Every chapter is illustrated with a project that you can deploy in your own situation.
By the end of this book, you will know several techniques for interfacing your Python applications with MySQL effectively so that powerful database management through Python becomes easy to achieve and easy to maintain.
A practical manual packed with step-by-step examples to manage your MySQL database efficiently through Python
What you will learn from this book :
Explore the various means to install MySQL for Python, from using an egg to unrolling a tarball
Query the database and retrieve records through MySQL for Python
Implement insertion of data into a MySQL database in Python
Carry out error-handling in MySQL for Python in order to ensure the robustness of programs
Use secure logging techniques to record how your users use your programs
Carry out record-by-record retrieval to save a lot of overhead while retrieving data
Handle insertion of large amounts of data using iteration and the executemany function
Automate the creation and removal of databases and tables using MySQL for Python
Use the MySQL for Python library to automate user creation and to administer access controls
Log user activity with MySQL for Python by using MySQL’s date and time support
See how to revise database programs to include more functionality
Use aggregate functions to make MySQL take the burden off your web server
Save time and processing resources by scripting JOINs and subqueries
Approach
This is a practical, tutorial-style book that includes many examples to demonstrate the full potential of MySQL for Python. Every chapter starts with an explanation of the various areas for using MySQL for Python and ends with work on a sample application using the programming calls just learned. All complicated concepts are broken down to be very easy to understand.
Everything in the book is designed to help you learn and use MySQL for Python to address your programming needs in the fastest way possible.
Who this book is written for
This book is meant for intermediate users of Python who want hassle-free access to their MySQL database through Python. If you are a Python programmer who wants database-support in your Python applications, then this book is for you. This book is a must-read for every focused user of the MySQL for Python library who wants real-world applications using this powerful combination of Python and MySQL.