UTF8MB4 issue with MySQL 8 and PyMySQL
See original GitHub issueMigrated issue, originally created by Danqing Liu (@danching)
Using MySQL 8 and PyMySQL 0.8.1 with SQLAlchemy 1.2.8.
e = create_engine('mysql+pymysql://account@localhost:3306/db?charset=utf8mb4')
e.connect()
~/lib/python3.6/site-packages/pymysql/cursors.py:170: Warning: (3719, "'utf8' is currently an alias for the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.")
result = self._query(query)
This doesn’t happen with MySQL 5. I’m already using utf8mb4, so I shouldn’t really see this.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (5 by maintainers)
Top Results From Across the Web
Python/Mysql UTF8/UTF8MB4 configuration problem?
1 Answer 1 · The VARCHAR and TEXT columns in your WP tables (and zillions of other tables around the globe) were declared...
Read more >10.9.1 The utf8mb4 Character Set (4-Byte UTF-8 Unicode ...
For a supplementary character, utf8mb4 requires four bytes to store it, whereas utf8mb3 cannot store the character at all. When converting utf8mb3 columns...
Read more >How to support full Unicode in MySQL databases
Change the character set and collation properties of the databases, tables, and columns to use utf8mb4 instead of utf8 . # For each...
Read more >MySQL and MariaDB — SQLAlchemy 2.0 Documentation
engine = create_engine("mysql+pymysql://user:pass@some_mariadb/dbname?charset=utf8mb4"). Upon first connect, the SQLAlchemy dialect employs ...
Read more >3719: 'utf8' is currently an alias for the character set UTF8MB3 ...
https://github.com/PyMySQL/PyMySQL/issues/690 ... Using MySQL 8 for a college project, have My Schema nailed and was going to use Django to display ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
my problem was solved according to: https://blog.csdn.net/u010457406/article/details/90440494
I’m just doing a migration (alembic 1.3.0, pymysql 0.9.3, sqlalchemy 1.3.10):
My connect string is
And my env.py: