Re: MySQLdb and conn.select_db() (Posting On Python-List Prohibited)

2017-11-15 Thread Lawrence D’Oliveiro
On Thursday, November 16, 2017 at 5:32:23 AM UTC+13, Tobiah wrote:

> AttributeError: 'Connection' object has no attribute 'select_db'

You could always execute a “use «db_name»” MySQL command.
-- 
https://mail.python.org/mailman/listinfo/python-list


MySQLdb and conn.select_db()

2017-11-15 Thread Tobiah

I have an older Ubuntu machine, 8.04 that
errors when I try to do conn.select_db().

AttributeError: 'Connection' object has no attribute 'select_db'

My 16.4 box acts as I'd expect.  Did this get added at some
point?  I'd really like to be able to get generic links so
I can do things like "show databases" and then maybe
select_db() after that.  It's also handy to be able to
change databases on the fly for things like looking at the
table set in multiple databases.

The main docs that I can find only show select_db() under the
_mysql library, yet my new machine is supporting it from
the MySQLdb library.  Are the docs lagging?  Can I download
the 'better' MySQLdb package and install it on the 8.04
machine?


Thanks,


Tobiah

--
https://mail.python.org/mailman/listinfo/python-list