http://sourceforge.net/projects/mysql-python/



On Aug 13, 5:49 pm, Jonathan Benn <[email protected]> wrote:
> Hi all,
>
> I'm trying to get web2py running on OpenSolaris.  When I try to
> connect the DAL to MySQL, I get the following error message:
>
> Traceback (most recent call last):
>   File "/var/apache2/2.2/htdocs/gluon/restricted.py", line 178, in
> restricted
>     exec ccode in environment
>   File "/var/apache2/2.2/htdocs/applications/welcome/models/db.py",
> line 16, in <module>
>     db = DAL('mysql://drupal:dru...@localhost:3306/drupal_data')
>   File "/var/apache2/2.2/htdocs/gluon/sql.py", line 2744, in DAL
>     return SQLDB(uri,pool_size=pool_size)
>   File "/var/apache2/2.2/htdocs/gluon/sql.py", line 731, in __init__
>     self._pool_connection(lambda : MySQLdb.Connection(
>   File "/var/apache2/2.2/htdocs/gluon/sql.py", line 643, in
> _pool_connection
>     self._connection = f()
>   File "/var/apache2/2.2/htdocs/gluon/sql.py", line 731, in <lambda>
>     self._pool_connection(lambda : MySQLdb.Connection(
> NameError: global name 'MySQLdb' is not defined
>
> When web2py starts, it outputs the line:
>     Database drivers available: SQLite3
>
> So I assume the problem is that web2py is missing the MySQL drivers.
> But what's the name of the required library?
>
> Thanks!
>
> --Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to