connect with MySQL question

bobb rawbobb at hotmail.com
Mon Apr 12 11:13:07 EDT 2004


perhaps it was on the mailing.database.mysql group, though :)

"bobb" <rawbobb at hotmail.com> wrote in message
news:8Owec.16842$QQ6.8203 at nwrdny02.gnilink.net...
> This was just recently asked, I believe.
> google for mysql client.
>
> <pengz1 at netzero.com> wrote in message
> news:mailman.477.1081484212.20120.python-list at python.org...
> >
> > Hi! All
> > I download MySQL to Python interface software and get MySQLdb module etc
> installed. But when I start mysqld on XP from c:\mysql\bin (all in
windows)
> and use following code to connect MySQL it fails
> >
> > # Database access
> > import MySQLdb
> >
>
con=MySQLdb.connect(host="127.0.0.1",port=3306,user="root",passwd="mypasswd"
> ,db="smalldb")
> > Cursor=con.cursor()
> > sql_cmd="select * from customers"
> > Cursor.execute(sql_cmd)
> > results=Cursor.fetachall()
> > con.close()
> >
> >
> > It asked for client upgrade. What that mean? MySQL is 4.0
> > Anyone can help?
> > Thanks in advance.
> >
> > Regards
> > Zhiyong
> >
> > ________________________________________________________________
> > The best thing to hit the Internet in years - NetZero HiSpeed!
> > Surf the Web up to FIVE TIMES FASTER!
> > Only $14.95/ month -visit www.netzero.com to sign up today!
> >
>
>





More information about the Python-list mailing list