Re: Why does django use mysqldb over mysql-connector?

2014-11-05 Thread Collin Anderson
Hello,
 

> https://github.com/PyMySQL/mysqlclient-python
>
> I didn't tried that. Someone use it?
>

I use it.

There's a thread about it on django-developers.
https://groups.google.com/d/topic/django-developers/n-TI8mBcegE/discussion

Collin
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4cd41609-5ea0-4b19-9a45-bb7c867dada8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread Larry Martell
Yes, thanks for the link. For some reason google wasn't finding that for me.

On Tue, Nov 4, 2014 at 6:59 AM,   wrote:
>
> Are you talking about this?
>
> https://github.com/PyMySQL/mysqlclient-python
>
> I didn't tried that. Someone use it?
>
>
> Em terça-feira, 4 de novembro de 2014 09h08min38s UTC-2, larry@gmail.com
> escreveu:
>>
>> What about mysqlclient? The django site says that is "the recommended
>> choice for using MySQL with Django" but I can't seem to find that
>> package. Does anyone have a link for that?
>>
>> On Mon, Nov 3, 2014 at 8:57 PM,   wrote:
>> >
>> > Hi all,
>> >
>> > I notice that python-mysql-connector(1) is almost 30% slow that
>> > MySQLdb(2),
>> > but MySQLdb until now not support python3.
>> >
>> > Anyone have news when MySQLdb will support python 3 or know another
>> > connector for mysql?
>> >
>> > It's a litte confused at this time, because we have django1.7.X that
>> > supports python3.4.X very well, but we don't have a good compatible
>> > mysql
>> > connector.
>> >
>> > 1-http://dev.mysql.com/downloads/connector/python/
>> > 2-https://pypi.python.org/pypi/MySQL-python/1.2.5
>> >
>> >
>> > Em quinta-feira, 3 de maio de 2012 22h18min23s UTC-3, john2095 escreveu:
>> >>
>> >> I've just been through a slice of hell simply because I did not want to
>> >> install mysql-server on my (osx) django development machine - my app
>> >> connects to a remote mysql database.  It turns out that python's
>> >> "mysqldb"
>> >> depends on mysql binaries which are only packaged up with the server
>> >> release.  This means that if you want to run django and connect to a
>> >> remote
>> >> mysql you still need to install mysqlserver locally.  I think that
>> >> blows.
>> >> Especially when there is a purely python mysql driver in
>> >> "mysql-connector".
>> >>
>> >> Has this happened by default or by design?  Is mysqldb really that much
>> >> faster, or featureful, or just because it's more common?
>> >>
>> >> Is anyone working on a pure python solution (mysql-connector) database
>> >> backend? Is there one already?
>> >>
>> >> thanks.
>> >
>> >
>> > Enviado via UCSMail.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to django-users...@googlegroups.com.
>> > To post to this group, send email to django...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/django-users.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/django-users/041bea14-74e6-42ce-b549-8ca5d31344e4%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY58V2j3dAcvKDqbN4R6vhQ_b_%3Dx3V%3DfxHa9PsUm7BMmDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread lzanuz

Are you talking about this?

https://github.com/PyMySQL/mysqlclient-python

I didn't tried that. Someone use it?


Em terça-feira, 4 de novembro de 2014 09h08min38s UTC-2, 
larry@gmail.com escreveu:
>
> What about mysqlclient? The django site says that is "the recommended 
> choice for using MySQL with Django" but I can't seem to find that 
> package. Does anyone have a link for that? 
>
> On Mon, Nov 3, 2014 at 8:57 PM,   wrote: 
> > 
> > Hi all, 
> > 
> > I notice that python-mysql-connector(1) is almost 30% slow that 
> MySQLdb(2), 
> > but MySQLdb until now not support python3. 
> > 
> > Anyone have news when MySQLdb will support python 3 or know another 
> > connector for mysql? 
> > 
> > It's a litte confused at this time, because we have django1.7.X that 
> > supports python3.4.X very well, but we don't have a good compatible 
> mysql 
> > connector. 
> > 
> > 1-http://dev.mysql.com/downloads/connector/python/ 
> > 2-https://pypi.python.org/pypi/MySQL-python/1.2.5 
> > 
> > 
> > Em quinta-feira, 3 de maio de 2012 22h18min23s UTC-3, john2095 escreveu: 
> >> 
> >> I've just been through a slice of hell simply because I did not want to 
> >> install mysql-server on my (osx) django development machine - my app 
> >> connects to a remote mysql database.  It turns out that python's 
> "mysqldb" 
> >> depends on mysql binaries which are only packaged up with the server 
> >> release.  This means that if you want to run django and connect to a 
> remote 
> >> mysql you still need to install mysqlserver locally.  I think that 
> blows. 
> >> Especially when there is a purely python mysql driver in 
> "mysql-connector". 
> >> 
> >> Has this happened by default or by design?  Is mysqldb really that much 
> >> faster, or featureful, or just because it's more common? 
> >> 
> >> Is anyone working on a pure python solution (mysql-connector) database 
> >> backend? Is there one already? 
> >> 
> >> thanks. 
> > 
> > 
> > Enviado via UCSMail. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Django users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to django-users...@googlegroups.com . 
> > To post to this group, send email to django...@googlegroups.com 
> . 
> > Visit this group at http://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/041bea14-74e6-42ce-b549-8ca5d31344e4%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4a00814f-7bc5-430f-9ebe-aecaee030ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread Larry Martell
What about mysqlclient? The django site says that is "the recommended
choice for using MySQL with Django" but I can't seem to find that
package. Does anyone have a link for that?

On Mon, Nov 3, 2014 at 8:57 PM,   wrote:
>
> Hi all,
>
> I notice that python-mysql-connector(1) is almost 30% slow that MySQLdb(2),
> but MySQLdb until now not support python3.
>
> Anyone have news when MySQLdb will support python 3 or know another
> connector for mysql?
>
> It's a litte confused at this time, because we have django1.7.X that
> supports python3.4.X very well, but we don't have a good compatible mysql
> connector.
>
> 1-http://dev.mysql.com/downloads/connector/python/
> 2-https://pypi.python.org/pypi/MySQL-python/1.2.5
>
>
> Em quinta-feira, 3 de maio de 2012 22h18min23s UTC-3, john2095 escreveu:
>>
>> I've just been through a slice of hell simply because I did not want to
>> install mysql-server on my (osx) django development machine - my app
>> connects to a remote mysql database.  It turns out that python's "mysqldb"
>> depends on mysql binaries which are only packaged up with the server
>> release.  This means that if you want to run django and connect to a remote
>> mysql you still need to install mysqlserver locally.  I think that blows.
>> Especially when there is a purely python mysql driver in "mysql-connector".
>>
>> Has this happened by default or by design?  Is mysqldb really that much
>> faster, or featureful, or just because it's more common?
>>
>> Is anyone working on a pure python solution (mysql-connector) database
>> backend? Is there one already?
>>
>> thanks.
>
>
> Enviado via UCSMail.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/041bea14-74e6-42ce-b549-8ca5d31344e4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY7_qyuZq%2BOFe5y7UTfGhFzJrijhHdr4QcYrG30osOQFYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does django use mysqldb over mysql-connector?

2014-11-03 Thread lzanuz

Hi all,

I notice that python-mysql-connector(1) is almost 30% slow that MySQLdb(2), 
but MySQLdb until now not support python3.

Anyone have news when MySQLdb will support python 3 or know another 
connector for mysql?

It's a litte confused at this time, because we have django1.7.X that 
supports python3.4.X very well, but we don't have a good compatible mysql 
connector.

1-http://dev.mysql.com/downloads/connector/python/
2-https://pypi.python.org/pypi/MySQL-python/1.2.5


Em quinta-feira, 3 de maio de 2012 22h18min23s UTC-3, john2095 escreveu:
>
> I've just been through a slice of hell simply because I did not want to 
> install mysql-server on my (osx) django development machine - my app 
> connects to a remote mysql database.  It turns out that python's "mysqldb" 
> depends on mysql binaries which are only packaged up with the server 
> release.  This means that if you want to run django and connect to a remote 
> mysql you still need to install mysqlserver locally.  I think that 
> blows. Especially when there is a purely python mysql driver in 
> "mysql-connector".
>
> Has this happened by default or by design?  Is mysqldb really that much 
> faster, or featureful, or just because it's more common?
>
> Is anyone working on a pure python solution (mysql-connector) database 
> backend? Is there one already?
>
> thanks.
>

-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/041bea14-74e6-42ce-b549-8ca5d31344e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread john2095
My frustration was borne by the ease with which Debian makes the task: I 
did expect the job to be an insignificant one-line command. Thanks Tom. 
Apple don't see a profit in providing a mysql-client package.  Ramiro has a 
point that lobbying MySQL for a client-only OSX package is a righteous 
path. Thanks Ramiro.

But at the end of the day we can't expect everyone else to do everything 
for us.  I'm now dreaming of a week or two with nothing to do but put time 
into one of those abandoned starts at a django-mysql-connector.  Thanks 
Masklinn.

I think you've all answered my questions.

1) It's happened by design; mysqldb is mature, stable and omnipotent; 
mysql/oracle and apple are unmotivated.
2) No-one is currently working on removing the dependency.  There are only 
a couple of false starts to date.

cheers,
John.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/qJdncQs9gQ8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Tom Evans
On Fri, May 4, 2012 at 2:18 AM, john2095  wrote:
> I've just been through a slice of hell simply because I did not want to
> install mysql-server on my (osx) django development machine - my app
> connects to a remote mysql database.  It turns out that python's "mysqldb"
> depends on mysql binaries which are only packaged up with the server
> release.  This means that if you want to run django and connect to a remote
> mysql you still need to install mysqlserver locally.  I think that
> blows. Especially when there is a purely python mysql driver in
> "mysql-connector".
>
> Has this happened by default or by design?  Is mysqldb really that much
> faster, or featureful, or just because it's more common?
>
> Is anyone working on a pure python solution (mysql-connector) database
> backend? Is there one already?
>
> thanks.
>

MySQL's client libraries provide a reference C API to access the
database, and are the basis for most MySQL drivers. These are
obviously bundled as part of the server code, but can be built
separately.

The vast majority of OS will package the client libraries separately
to the server binaries - eg Debian:
http://packages.debian.org/sid/mysql-client-5.1 - but I expect you
installed from source, and were put off by it downloading the full
MySQL source tarball.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Ramiro Morales
On Thu, May 3, 2012 at 10:18 PM, john2095  wrote:
> I've just been through a slice of hell simply because I did not want to
> install mysql-server on my (osx) django development machine - my app
> connects to a remote mysql database.  It turns out that python's "mysqldb"
> depends on mysql binaries which are only packaged up with the server
> release.  This means that if you want to run django and connect to a remote
> mysql you still need to install mysqlserver locally.  I think that
> blows. Especially when there is a purely python mysql driver in
> "mysql-connector".
>
> Has this happened by default or by design?  Is mysqldb really that much
> faster, or featureful, or just because it's more common?

IMHO who you really need to ask and whine to is with the providers of the
packaging of mysqldb and MySQL in your platform. It is really nasty that in
2012 you need to install the binaries of a database server to be able
to install the client-side drivers of a programming language. This is a
problem solved decades ago.

-- 
Ramiro Morales

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Masklinn

On 2012-05-04, at 09:36 , john2095 wrote:

> Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb 
> primarily because it's mature and stable. Thanks.
> 
> As for the second question: has anyone tried building a backend on 
> mysql-connector yet?  Silence?  Is this an opportunity?

A quick google search (still works), points to
https://github.com/rtyler/connector-django-mysql and a few of its forks
(e.g. https://github.com/jerith/connector-django-mysql), as well as a
workaround like
http://forums.mysql.com/read.php?50,400033,400320#msg-400320

So yes, it would seem people have tried building backends, and these
works look mostly abandoned at this point.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread john2095
Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb 
primarily because it's mature and stable. Thanks.

As for the second question: has anyone tried building a backend on 
mysql-connector yet?  Silence?  Is this an opportunity?


On Friday, 4 May 2012 16:53:43 UTC+10, Kurtis wrote:
>
> I think what he was trying to get at is that the Python MySQL Adapter is 
> in early stages of development where-as Django is depended upon to be a 
> very stable platform/framework. It would be great to have the option to use 
> that adapter though for situations like yours.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/e0SPHkOwVrwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Kurtis Mullins
I think what he was trying to get at is that the Python MySQL Adapter is in
early stages of development where-as Django is depended upon to be a very
stable platform/framework. It would be great to have the option to use that
adapter though for situations like yours.

On Fri, May 4, 2012 at 1:21 AM, john2095  wrote:

> Yes, that's the pure python adapter I'm talking about.  I think that's
> effectively the same as this 
> one.
>  Nice link but I'm not sure if you're suggesting that as additional
> information or an answer?
>
> The question remains is a compelling reason why "django.db.backends.mysql"
> is built upon mysqldb  with
> dependencies rather one without dependancies, and if anyone has attempted
> to implement an equivalent "django.db.backends.mysql" with the latter.
>
>
> On Friday, 4 May 2012 11:30:31 UTC+10, steev wrote:
>>
>> > Has this happened by default or by design?  Is mysqldb really that much
>> > faster, or featureful, or just because it's more common?
>>
>> From 
>> http://forge.mysql.com/**projects/project.php?id=302
>>
>> "Development Status: Early (Pre-Alpha)"
>>
>> --
>> steve
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/xLS_rF0bi_gJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread john2095
Yes, that's the pure python adapter I'm talking about.  I think that's 
effectively the same as this 
one. 
 Nice link but I'm not sure if you're suggesting that as additional 
information or an answer?

The question remains is a compelling reason why "django.db.backends.mysql" 
is built upon mysqldb  with 
dependencies rather one without dependancies, and if anyone has attempted 
to implement an equivalent "django.db.backends.mysql" with the latter.


On Friday, 4 May 2012 11:30:31 UTC+10, steev wrote:
>
> > Has this happened by default or by design?  Is mysqldb really that much 
> > faster, or featureful, or just because it's more common? 
>
> From http://forge.mysql.com/projects/project.php?id=302 
>
> "Development Status: Early (Pre-Alpha)" 
>
> -- 
> steve 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/xLS_rF0bi_gJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread Steve McConville
> Has this happened by default or by design?  Is mysqldb really that much
> faster, or featureful, or just because it's more common?

>From http://forge.mysql.com/projects/project.php?id=302

"Development Status: Early (Pre-Alpha)"

-- 
steve

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Why does django use mysqldb over mysql-connector?

2012-05-03 Thread john2095
I've just been through a slice of hell simply because I did not want to 
install mysql-server on my (osx) django development machine - my app 
connects to a remote mysql database.  It turns out that python's "mysqldb" 
depends on mysql binaries which are only packaged up with the server 
release.  This means that if you want to run django and connect to a remote 
mysql you still need to install mysqlserver locally.  I think that 
blows. Especially when there is a purely python mysql driver in 
"mysql-connector".

Has this happened by default or by design?  Is mysqldb really that much 
faster, or featureful, or just because it's more common?

Is anyone working on a pure python solution (mysql-connector) database 
backend? Is there one already?

thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/eyGNf1RsLEsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.