----- Original Message ----- From: "Elena Schulz" <elena.schulz@gmx.net> To: "Shane Hathaway" <shane@zope.com>; <zope@zope.org> Sent: Wednesday, April 14, 2004 5:35 AM Subject: Re: [Zope] Ape & MySQL: Error adding ZODB MountPoint
Hi Shane,
thanks for your answer ...
No, Ape does not use Zope's database adapters. It uses the Python DB-API module interface. You seem to already have everything you need installed. Fine
Something like: connect(db='ape' , user=?, password=?) I tried: connect(db='ape' , user=myUser) and it worked (means the user was detected) but I didn't find a way to specify the password yet. password, pword or pw were not accepted as params. I'll try to find in the Python DB-API.
db0=MySQLdb.connect(host="servername",user="user",passwd="password",db="data base") my 2 cents / hth bobb
Perhaps. The problem has nothing to do with Ape. You need to figure
out
how to connect to MySQL. I would work on connecting using the "mysql" command-line client first. Ok, at least I know where to start ...
I'll try to give you pointers, but I don't have much expertise in this area. For testing, I wiped out my MySQL database and started over this way (as root):
/etc/init.d/mysql stop rm -rf /var/lib/mysql mysql_install_db /etc/init.d/mysql start I'm using windows so it'll be different, but I'll try to connect via the mysql_python api.
-- thanks again, Elena
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )