<div>----- Original Message ----- <br>
From: &lt;<A href="http://mail.zope.org/mailman/listinfo/zope">tonylabarbara at aol.com</A>&gt;<br>
To: &lt;<A href="http://mail.zope.org/mailman/listinfo/zope">zope at zope.org</A>&gt;<br>
Sent: Saturday, July 14, 2007 5:43 PM<br>
Subject: [Zope] Problem w/ ZMySQLDA<br>
<br>
<br>
&gt; &gt;<I> Hi;<br>
</I>&gt; &gt;<I> ? I just built out a new server and transfered my databases. I use Zope to<br>
</I>&gt; &gt;<I> server my web sites and ZMySQLDA to interface between the two. Everything <br>
</I>&gt; &gt;<I> seems<br>
</I>&gt; &gt;<I> to be fine. I can see the databases, the tables, the columns in the <br>
</I>&gt; &gt;<I> tables, the<br>
</I>&gt; &gt;<I> permissions are correct, etc. I hook up ZMySQLDA and that seems to be <br>
</I>&gt; &gt;<I> fine. It<br>
</I>&gt; &gt;<I> connects to the database. However, when I go to look at the pages from <br>
</I>&gt; &gt;<I> served<br>
</I>&gt; &gt;<I> the database, the browser hangs. Any ideas how to troubleshoot this?<br>
</I><br>
&gt; You should have a MySQL_database_connection object in a folder somewhere (in <br>
&gt; the ZMI).&nbsp; The "Status" for this object should say "The database connection <br>
&gt; is open".&nbsp; There is a "Test" tab for this object in which you can enter an <br>
&gt; sql query. If this query works ok, then the next step is to test your Z SQL <br>
&gt; Method(s).<br>
<br>
Thanks. That clarified a lot. The MySQL query comes back fine. I'm troubleshooting a complex shop I had a programmer who worked for me build...so it's not my code...and it's complex ;) I went into the shopkeeper's side and was able to successfully query the database. I was, for example, able to display the "cotton" products for editing. However, when I do essentially_the_same_thing TTW with the following code snippet, it hangs!<br>
<br>
&lt;tal:block metal:define-macro="content"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; define="dummy python:request.set('category', 5)"&gt;</div>


<div>&nbsp; &lt;tal:block metal:use-macro="here/Store/Main_frame_content/macros/content" /&gt;</div>


<div>&lt;/tal:block&gt; <br>
<br>
Furthermore, mytop shows the user is hanging:<br>
&nbsp;&nbsp;&nbsp;&nbsp; 30 mysqluser&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost mrtableclo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 473&nbsp; Sleep<br>
<br>
What should I do next to troubleshoot this?<br>
TIA,<br>
Tony</div>
<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone.  Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>