GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.fullstackpython.com — MySQL MySQLMySQL is an open source relational database implementation for storing and retrieving data.
MySQL or PostgreSQL?MySQL is a viable open source database implementation for Python web applications. MySQL has a slightly easier initial learning curve than PostgreSQL. However, PostgreSQL's design is often preferred by Python web developers, especially when data migrations are run as an application evolves. MySQL is an implementation of the relational database concept. Learn more in the data chapter or view the table of contents for all topics.
Python Drivers for MySQLAccessing MySQL from a Python application requires a database driver (also called a "connector"). While it is possible to write a driver as part of your application, in practice most developers use an existing open source driver. There was a major issue with MySQL drivers since the introduction of Python 3. One of the most popular libraries called MySQLdb did not work in its existing form with Python 3 and there were no plans to update it. Therefore a fork of MySQLdb named mysqlclient added Python 3 compatibility. The mysqlclient fork was good in that existing MySQLdb users could drop mysqlclient into existing projects that were upgrading to Python 3. However, the fork often causes confusion when searching for which Python driver to use with MySQL. Many developer simply decide to use PostgreSQL because there is better support for Python drivers in the PostgreSQL community. With that driver support context in mind, it's absolutely possible to build a Python 3 web application with MySQL as a backend. Here is a list of drivers along with whether it supports Python 2, 3 or both.
What organizations use MySQL?The database is deployed in production at some of the highest trafficked sites such as Uber, Twitter, Facebook and many others major organizations. However, since MySQL AB, the company that developed MySQL, was purchased by Sun Microsystems (which was in turn purchased by Oracle), there have been major defections away from the database by Wikipedia and Google. MySQL remains a viable database option but I always recommend new Python developers learn PostgreSQL if they do not already know MySQL. Python-specific MySQL resourcesThe following resources show you how to work with MySQL in your Python code either directly through SQL queries or less directly with an object-relational mapper (ORM) like SQLAlchemy or the Django ORM.
General MySQL resourcesThere are many programming language agnostic tutorials for MySQL. A handful of the best of these tutorials are listed below.
Learn more about data or go to web frameworks?
1. Introduction
2. Development Environments
3. Data
Relational Databases
PostgreSQL
MySQL
SQLite
Object-relational Mappers
SQLAlchemy
Peewee
Django ORM
Pony ORM
NoSQL Data Stores
Redis
MongoDB
Apache Cassandra
Neo4j
Data analysis
pandas
SciPy & NumPy
Data visualization
Bokeh
d3.js
Matplotlib
Markup Languages
Markdown
reStructuredText
Oracle
4. Web Development
5. Deployment
6. DevOps
Changelog
What Full Stack Means
About the Author
Future Directions
Page Statuses
...or view the full table of contents.
Full Stack Python
Full Stack Python
is an open book that explains concepts in plain language and provides
helpful resources for those topics.
Updates via Twitter & Facebook. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |