Git Product home page Git Product logo

Comments (5)

jettify avatar jettify commented on August 17, 2024

Does pymysql support mysql 5.1? If so should be easy to fix. I will take a
look when, get home

On Sat, Nov 14, 2015, 07:48 llzx373 [email protected] wrote:

In my test,aiomysql not support mysql 5.1, select statement not fetch
result return.What can I do?

async def aio_test():
con=await
aiomysql.connect(host='instance_51',port=3306,user='user',password='passwd')
cur=await con.cursor()
await cur.execute('select 1')
res=await cur.fetchone()
print(res)
await cur.close()
con.close()

if name == 'main':
loop = asyncio.get_event_loop()
loop.run_until_complete(aio_test())


Reply to this email directly or view it on GitHub
#38.

from aiomysql.

jettify avatar jettify commented on August 17, 2024

Looks like mysql 5.1 is not actively supported
http://dba.stackexchange.com/questions/10931/which-version-of-mysql-should-i-use
may be better option is to upgrade?

On Sat, Nov 14, 2015, 11:03 Nickolai Novik [email protected] wrote:

Does pymysql support mysql 5.1? If so should be easy to fix. I will take a
look when, get home

On Sat, Nov 14, 2015, 07:48 llzx373 [email protected] wrote:

In my test,aiomysql not support mysql 5.1, select statement not fetch
result return.What can I do?

async def aio_test():
con=await
aiomysql.connect(host='instance_51',port=3306,user='user',password='passwd')
cur=await con.cursor()
await cur.execute('select 1')
res=await cur.fetchone()
print(res)
await cur.close()
con.close()

if name == 'main':
loop = asyncio.get_event_loop()
loop.run_until_complete(aio_test())


Reply to this email directly or view it on GitHub
#38.

from aiomysql.

llzx373 avatar llzx373 commented on August 17, 2024

In our product env,about 30%(1000+instances) is 5.1.x,upgrade is too hard。In another test,pymyql is work, now,I use gevent+pymysql work well。
But I think asyncio class(aiomysql etc.)is the best practice,fix this bug is very important for me。
thank you。

from aiomysql.

jettify avatar jettify commented on August 17, 2024

oh, I see, will try to find time on/after weekends.

from aiomysql.

jettify avatar jettify commented on August 17, 2024

mysql 5.1 is very old, there are little motivation to support it, but PR is welcome

from aiomysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.