<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Tag: SQL</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: SQL</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 22:34:11 +0000</pubDate>

<item>
<title>sambauers on "Slow Queries - 300 second query times"</title>
<link>http://bbpress.org/forums/topic/slow-queries-300-second-query-times#post-19607</link>
<pubDate>Thu, 02 Oct 2008 22:52:08 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">19607@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I think that query is generated by the forum-last-poster plugin.&#60;/p&#62;
&#60;p&#62;If it is the one that is showing up over and over again, then get rid of it.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Slow Queries - 300 second query times"</title>
<link>http://bbpress.org/forums/topic/slow-queries-300-second-query-times#post-19597</link>
<pubDate>Thu, 02 Oct 2008 01:41:10 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">19597@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There have been some relevant discussions here:&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/bbpress-0901-gt-30-queries-per-page&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/bbpress-0901-gt-30-queries-per-page&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/server-overload&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/server-overload&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/fulltext-searching-very-slow&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/fulltext-searching-very-slow&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/how-to-evaluate-server-speed&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/how-to-evaluate-server-speed&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Looking at the front page of your forum, I see a total of 3074 threads and 22,121 posts.  Is there more than meets the eye here to come up with 2.5 million rows of data?  Or maybe there's not 2.5 millions rows in bb_topics, it's just because of the subquery that it looks at that many records (like it's something I don't understand about the way MySQL displays the number or rows searched)?&#60;/p&#62;
&#60;p&#62;Did the amount of data grow exponentially after the conversion from xdforums?  Maybe there were 20K rows in xdforums, but something with the conversion didn't go well and it duplicated a bunch of data?  How many rows were there in comparable tables before and after conversion?&#60;/p&#62;
&#60;p&#62;Something doesn't add up.&#60;/p&#62;
&#60;p&#62;Also, are all those queries the same, and if so, is that query just trying to determine the last poster, from the &#34;Forum Last Poster&#34; plugin?  If so, have you tried just turning that plugin off?  If that works, then maybe just optimizing the query for your installation would work and you could turn it back on after modifying the plugin.&#60;/p&#62;
&#60;p&#62;Of all the plugins, the only other one I could see affecting the queries like that would be the Post Count Plus.  That would be the second one I turn off and check for a performance difference.
&#60;/p&#62;</description>
</item>
<item>
<title>clicknathan on "Slow Queries - 300 second query times"</title>
<link>http://bbpress.org/forums/topic/slow-queries-300-second-query-times#post-19594</link>
<pubDate>Wed, 01 Oct 2008 21:33:50 +0000</pubDate>
<dc:creator>clicknathan</dc:creator>
<guid isPermaLink="false">19594@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I've recently set up a BBPress forum for non-profit Bike Pittsburgh and their host, Pair Networks, shut down their database because of the load BBPress was putting on the server. Pair has since reinstated the db, but I was wondering if anyone could offer any insight as to how I might trim down the size of the queries that BBPress is putting through. A little background:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;I used &#60;a href=&#34;http://fastpipe.com/2008/06/23/converting-xdforum-to-bbpress&#34;&#62;this method&#60;/a&#62; to convert a WordPress XDForum into BBPress. I know the author of that post mentions that the method he uses might not be the most efficient, however at this point (after the conversion), I wouldn't think that BBPress is using any of this info any more, correct?&#60;/li&#62;
&#60;li&#62;We're running BBPress v. 0.9.0.2&#60;/li&#62;
&#60;li&#62;We're using the following plugins: Akismet, Use Display Name, BBPress Private Messaging, Post Count Plus, Forum Last Poster, and Images Allowed&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;The information from the host was this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
With that said, we wanted to provide a follow up in terms of the nature of the problem itself. The problem is that the database is running some very inefficient queries, trying to sort through 2.5 million rows and are returning very few to no results. These queries take a long time to run and are called &#34;slow queries&#34;. As you gain in traffic, the more of these slow queries that are run, the higher the load on the server, and therefore the more affect you have on other customers.&#60;/p&#62;
&#60;p&#62;I've included some examples of these queries below for your review:&#60;/p&#62;
&#60;p&#62;# Time: 080930 20:55:01&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 54  Lock_time: 0  Rows_sent: 10  Rows_examined: 2469001&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;br /&#62;
# Time: 080930 20:56:05&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 71  Lock_time: 0  Rows_sent: 10  Rows_examined: 2469001&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;br /&#62;
# Time: 080930 20:56:43&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 67  Lock_time: 0  Rows_sent: 10  Rows_examined: 2469001&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;br /&#62;
# Time: 080930 20:57:38&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 52  Lock_time: 0  Rows_sent: 10  Rows_examined: 2469001&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;br /&#62;
# Time: 080930 21:20:46&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 263  Lock_time: 0  Rows_sent: 10  Rows_examined: 2469001&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;br /&#62;
# Time: 080930 21:22:35&#60;br /&#62;
# &#60;a href=&#34;mailto:User@Host:&#34;&#62;User@Host:&#60;/a&#62; bikepgh[bikepgh] @  [209.68.4.180]&#60;br /&#62;
# Query_time: 281  Lock_time: 0  Rows_sent: 0  Rows_examined: 1952752&#60;br /&#62;
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN&#60;br /&#62;
(SELECT MAX&#60;br /&#62;
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY&#60;br /&#62;
forum_id);&#60;/p&#62;
&#60;p&#62;As you can see, these queries are taking almost 300 seconds to complete&#60;br /&#62;
(query_time). This is an extremely high time, as a query on a shared server&#60;br /&#62;
should take under 10 seconds to complete.&#60;/p&#62;
&#60;p&#62;I hope this helps provide some needed details for you. If we can be of any&#60;br /&#62;
further assistance, please do not hesitate to ask.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Any help as to what I might do in PHPMyAdmin or otherwise to help lower the load on the db would be VERY MUCH appreciated!
&#60;/p&#62;</description>
</item>
<item>
<title>holloway on "Quick SQL question"</title>
<link>http://bbpress.org/forums/topic/quick-sql-question#post-18378</link>
<pubDate>Sun, 17 Aug 2008 19:45:36 +0000</pubDate>
<dc:creator>holloway</dc:creator>
<guid isPermaLink="false">18378@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Nevermind, should someone encounter the same issue just run the query before you reinstall:&#60;/p&#62;
&#60;p&#62;ALTER wp_users DROP user_activation_key
&#60;/p&#62;</description>
</item>
<item>
<title>holloway on "Quick SQL question"</title>
<link>http://bbpress.org/forums/topic/quick-sql-question#post-18377</link>
<pubDate>Sun, 17 Aug 2008 19:13:35 +0000</pubDate>
<dc:creator>holloway</dc:creator>
<guid isPermaLink="false">18377@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm running Alpha 1.0 and recently had to ask for support. I get the feeling I did something wrong before I did the solution as I now have an issue where I APPEAR to have permission to access admin panel and to post, but clicking on the links just sends me to the board index.&#60;/p&#62;
&#60;p&#62;I've reinstalled the BBPress files and deleted the 'bb_' tables in the sql however this issue remains in this new installation. I'm integrated with WP, therefore I was wondering if someone could list the rows added to the Wordpress sql by the bbpress integration process so that I could try removing them.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "bb_register_view - from SQL to array"</title>
<link>http://bbpress.org/forums/topic/bb_register_view-from-sql-to-array#post-17583</link>
<pubDate>Wed, 23 Jul 2008 16:15:49 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17583@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've never figured out how to do direct query setup for views, so what I do is just short-circuit the internal function and write my own.  For example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;bb_register_view(&#38;quot;highest-rated&#38;quot;,&#38;quot;Topics with the highest rating&#38;quot;,array(&#38;#39;append_meta&#38;#39;=&#38;gt;false,&#38;#39;sticky&#38;#39;=&#38;gt;false));
add_action( &#38;#39;bb_custom_view&#38;#39;, &#38;#39;highest_rated&#38;#39; );

function highest_rated( $view ) {
if ($view==&#38;#39;highest-rated&#38;#39;)  {
        global $bbdb, $topics, $view_count, $page;
	$limit = bb_get_option(&#38;#39;page_topics&#38;#39;);
	$offset = ($page-1)*$limit;
	$where = apply_filters(&#38;#39;get_latest_topics_where&#38;#39;,&#38;quot;WHERE topic_status=0 &#38;quot;);
	$query = &#38;quot; FROM $bbdb-&#38;gt;topics $where &#38;quot;;
	$restrict = &#38;quot; ORDER BY cast(topic_posts as UNSIGNED) DESC LIMIT $limit OFFSET $offset&#38;quot;;

	$view_count  = $bbdb-&#38;gt;get_var(&#38;quot;SELECT count(*) &#38;quot;.$query);
	$topics = $bbdb-&#38;gt;get_results(&#38;quot;SELECT * &#38;quot;.$query.$restrict);
	$topics = bb_append_meta( $topics, &#38;#39;topic&#38;#39; );
}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
Obviously change the query to your own and that might work for you.   Don't forget to use &#60;code&#62;$bbdb-&#38;gt;bb_ratings&#60;/code&#62; the $bbdb part is critical.
&#60;/p&#62;</description>
</item>
<item>
<title>poioioing on "bb_register_view - from SQL to array"</title>
<link>http://bbpress.org/forums/topic/bb_register_view-from-sql-to-array#post-17568</link>
<pubDate>Wed, 23 Jul 2008 13:33:40 +0000</pubDate>
<dc:creator>poioioing</dc:creator>
<guid isPermaLink="false">17568@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I work with bbPress 0.9.&#60;br /&#62;
Been trying for hours to get this SQL into a view?&#60;br /&#62;
How should the array for bb_register_view() look like?&#60;/p&#62;
&#60;p&#62;SELECT bbt.*, (SELECT COUNT(*) FROM bb_ratings WHERE topic_id=bbt.topic_id) AS counts&#60;br /&#62;
FROM bb_topics bbt, bb_ratings bbr&#60;br /&#62;
WHERE bbt.forum_id = 2 AND bbt.topic_status = 0&#60;br /&#62;
GROUP BY bbt.topic_id&#60;br /&#62;
ORDER BY counts DESC
&#60;/p&#62;</description>
</item>
<item>
<title>bramruiter on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16797</link>
<pubDate>Wed, 18 Jun 2008 12:15:17 +0000</pubDate>
<dc:creator>bramruiter</dc:creator>
<guid isPermaLink="false">16797@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It indeed was aMySQL issue. It's been solved now.
&#60;/p&#62;</description>
</item>
<item>
<title>bramruiter on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16794</link>
<pubDate>Wed, 18 Jun 2008 10:12:49 +0000</pubDate>
<dc:creator>bramruiter</dc:creator>
<guid isPermaLink="false">16794@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ah, I thought it was something like that. I've just ordered a new hosting, which works on MySQL 5.&#60;/p&#62;
&#60;p&#62;Thanks for the help.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16762</link>
<pubDate>Sat, 14 Jun 2008 18:13:48 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16762@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;bbPress requires MySQL 4.0 minimum.  I think 3.23 is too low:&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/about/requirements/&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/about/requirements/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>bramruiter on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16759</link>
<pubDate>Sat, 14 Jun 2008 10:13:23 +0000</pubDate>
<dc:creator>bramruiter</dc:creator>
<guid isPermaLink="false">16759@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sorry, I don't check this forum daily, so here's a late answer:&#60;/p&#62;
&#60;p&#62;1. From what I know, it has always been like this. It's only when I perform a search.&#60;/p&#62;
&#60;p&#62;2. The version is bbPress 0.9.0.2  and it was installed somewhere between june 26 and june 31.&#60;/p&#62;
&#60;p&#62;3. I didn't. I only screwed around with the template files.&#60;/p&#62;
&#60;p&#62;4. No, they did no update or change whatsoever.&#60;/p&#62;
&#60;p&#62;5. Like I said, it was there before the plug-ins, but here's the list.&#60;br /&#62;
Private Forums, BBPress Private Messaging (not working), Post Count Plus - Dynamic.Titles &#38;#38; More!, Akismet, Avatar, Last-Post, Limit Latest Discussion, Bozo Users, BBcode Lite, Move It, Quote, Simple Onlinelist, Allow Images, Human Test for bbPress &#38;#38; Front Page Topics.&#60;/p&#62;
&#60;p&#62;6. The second error appears only when someone perform a search. The first error is only noted in the admin area, in the first tab, beneath 'User Registrations'.&#60;/p&#62;
&#60;p&#62;7. Yes. It does happen.&#60;/p&#62;
&#60;p&#62;The MySQL version is 3.23.58.&#60;/p&#62;
&#60;p&#62;I'm not a big guy when it comes to coding/scripting, so I have no idea what these errors mean. I'm glad somebody wants to help.
&#60;/p&#62;</description>
</item>
<item>
<title>bobbyh on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16671</link>
<pubDate>Mon, 09 Jun 2008 19:32:12 +0000</pubDate>
<dc:creator>bobbyh</dc:creator>
<guid isPermaLink="false">16671@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Check your mysql version number. Is it really low?
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16667</link>
<pubDate>Mon, 09 Jun 2008 15:52:37 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16667@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Interestingly, I copied and pasted your SQL query from above, and used it on my installation unchanged, and it did not error out, it just return the expected results.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;SELECT t.*, MIN(p.post_id) as post_id, p.post_text, 0 AS search_score FROM bb_topics AS t JOIN bb_posts as p ON ( t.topic_id = p.topic_id ) WHERE t.topic_status = &#38;#39;0&#38;#39; AND p.post_status = &#38;#39;0&#38;#39; AND ( (t.topic_title LIKE &#38;#39;%ja%&#38;#39;) OR p.post_text LIKE &#38;#39;%ja%&#38;#39; ) GROUP BY t.topic_id ORDER BY t.topic_time DESC LIMIT 20&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;See the results &#60;a href=&#34;http://www.chrishajer.com/bbpress/sqlerror.png&#34; title=&#34;no SQL error here&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;This is an old bbPress installation as well, 1.0-alpha from over a year ago.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16666</link>
<pubDate>Mon, 09 Jun 2008 15:25:17 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16666@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;1.  Has this installation always been like this, or did something change recently?&#60;/p&#62;
&#60;p&#62;2.  What version are you running and when was it installed?&#60;/p&#62;
&#60;p&#62;3.  Did you change hosting or make any other changes to the installation?&#60;/p&#62;
&#60;p&#62;4.  Did your host upgrade PHP or MySQL or your .htaccess file or something else that would have affected this?&#60;/p&#62;
&#60;p&#62;5.  What plugins are installed, and does disabling them help with the error?&#60;/p&#62;
&#60;p&#62;6.  Does the problem described in the first post happen only when searching, or is that from something else and you now have the problem described in the last post as well?&#60;/p&#62;
&#60;p&#62;7.  Does the problem happen when using the stock theme?&#60;/p&#62;
&#60;p&#62;You don't have a normal run-of-mill type problem that can be  easily and simply solved, so people are going to need more info to help.
&#60;/p&#62;</description>
</item>
<item>
<title>bramruiter on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16663</link>
<pubDate>Mon, 09 Jun 2008 13:48:29 +0000</pubDate>
<dc:creator>bramruiter</dc:creator>
<guid isPermaLink="false">16663@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The problem got a bit bigger. When someone tries to find something through the search they get:&#60;/p&#62;
&#60;p&#62;bbPress database error: [You have an error in your SQL syntax near 'ON ( t.topic_id = p.topic_id ) WHERE p.post_text LIKE '%ja%' AND p.post_status =' at line 1]&#60;br /&#62;
SELECT p.*, 0 AS search_score, MAX(post_time) AS post_time FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_text LIKE '%ja%' AND p.post_status = '0' AND t.topic_status = '0' GROUP BY t.topic_id ORDER BY p.post_time DESC LIMIT 5&#60;/p&#62;
&#60;p&#62;bbPress database error: [You have an error in your SQL syntax near 'ON ( t.topic_id = p.topic_id ) WHERE t.topic_status = '0' AND p.post_status = '0' at line 1]&#60;br /&#62;
SELECT t.*, MIN(p.post_id) as post_id, p.post_text, 0 AS search_score FROM bb_topics AS t JOIN bb_posts as p ON ( t.topic_id = p.topic_id ) WHERE t.topic_status = '0' AND p.post_status = '0' AND ( (t.topic_title LIKE '%ja%') OR p.post_text LIKE '%ja%' ) GROUP BY t.topic_id ORDER BY t.topic_time DESC LIMIT 20
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16659</link>
<pubDate>Sun, 08 Jun 2008 22:28:49 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16659@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;What do you have to do to get that error to show up?  Installation, view profile, post a new topic, post a reply, add a tag, etc...
&#60;/p&#62;</description>
</item>
<item>
<title>bramruiter on "bbPress Database Error"</title>
<link>http://bbpress.org/forums/topic/bbpress-database-error-1#post-16657</link>
<pubDate>Sun, 08 Jun 2008 17:39:52 +0000</pubDate>
<dc:creator>bramruiter</dc:creator>
<guid isPermaLink="false">16657@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;bbPress database error: [You have an error in your SQL syntax near 'ON ( t.topic_id = p.topic_id ) WHERE p.post_status != '0' AND t.topic_status = '' at line 1]&#60;br /&#62;
SELECT p.* FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_status != '0' AND t.topic_status = '0' ORDER BY p.post_time DESC LIMIT 5&#60;/p&#62;
&#60;p&#62;What does it mean?
&#60;/p&#62;</description>
</item>
<item>
<title>motaboy21 on "i cannot use "´" on my posts"</title>
<link>http://bbpress.org/forums/topic/i-cannot-use-%c2%b4-on-my-posts#post-16612</link>
<pubDate>Wed, 04 Jun 2008 20:57:00 +0000</pubDate>
<dc:creator>motaboy21</dc:creator>
<guid isPermaLink="false">16612@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;well, when im writing a post and i write something like &#34;it´s&#34; i have an error of SQL (or Mysql) that says there was a problem with this character &#34;´&#34;&#60;/p&#62;
&#60;p&#62;try it hentaitube.org &#60;/p&#62;
&#60;p&#62;help please
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "bbPress on a ms sql server"</title>
<link>http://bbpress.org/forums/topic/bbpress-on-a-ms-sql-server#post-15762</link>
<pubDate>Fri, 25 Apr 2008 15:20:15 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">15762@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You would have to write a replacement for bb-includes/db.php to get bbPress to work with MSSQL.
&#60;/p&#62;</description>
</item>
<item>
<title>anjap on "bbPress on a ms sql server"</title>
<link>http://bbpress.org/forums/topic/bbpress-on-a-ms-sql-server#post-15755</link>
<pubDate>Fri, 25 Apr 2008 08:50:47 +0000</pubDate>
<dc:creator>anjap</dc:creator>
<guid isPermaLink="false">15755@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Has anyone tried to install bbpress on ms sql server ?&#60;/p&#62;
&#60;p&#62;I know mysql is required, but we already have a ms sql 2003 server up and runnig and would like to use bbpress on our intranet. &#60;/p&#62;
&#60;p&#62;Of cource we don't want to mess up the existing stuff, but on other hand we would like to avoid having both mssql and mysql runnig.&#60;/p&#62;
&#60;p&#62;So any experience, good advices or hints would be appreciated...
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "How to get the id from the second row? (Mysql)"</title>
<link>http://bbpress.org/forums/topic/how-to-get-the-id-from-the-second-row-mysql#post-11859</link>
<pubDate>Thu, 08 Nov 2007 17:37:54 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">11859@http://bbpress.org/forums/</guid>
<description>&#60;pre&#62;&#60;code&#62;$data = $bbdb-&#38;gt;query(&#38;#39;stuff&#38;#39;);
$what_you_want = $data[1]-&#38;gt;column_name;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If I recall correctly.&#60;br /&#62;
&#60;code&#62;$data[1]&#60;/code&#62; should be the second item (0-based arrays), which is an object. Access its property by the name of the column the ID is stored in. bbdb is based on ezSQL. Look for some documentation. It's actually pretty well documented for wpdb; did you not find anything there?
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "How to get the id from the second row? (Mysql)"</title>
<link>http://bbpress.org/forums/topic/how-to-get-the-id-from-the-second-row-mysql#post-11855</link>
<pubDate>Thu, 08 Nov 2007 15:46:56 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">11855@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am at work so can't show the query :)&#60;/p&#62;
&#60;p&#62;The results are always different, but I need the id from the sec row no matter what the outcome is...&#60;/p&#62;
&#60;p&#62;So sometimes it's:&#60;br /&#62;
Row 1 - id 23 - tekst&#60;br /&#62;
Row 2 - id 12 - tekst&#60;br /&#62;
Row 3 - id 44 - tekst&#60;br /&#62;
etc&#60;/p&#62;
&#60;p&#62;Or sometimes it's:&#60;br /&#62;
Row 1 - id 7863 - tekst&#60;br /&#62;
Row 2 - id 56557 - tekst&#60;br /&#62;
Row 3 - id 665 - tekst&#60;br /&#62;
etc
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "How to get the id from the second row? (Mysql)"</title>
<link>http://bbpress.org/forums/topic/how-to-get-the-id-from-the-second-row-mysql#post-11854</link>
<pubDate>Thu, 08 Nov 2007 13:42:22 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">11854@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;How are the results ordered now?  How about showing the SQL?
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "How to get the id from the second row? (Mysql)"</title>
<link>http://bbpress.org/forums/topic/how-to-get-the-id-from-the-second-row-mysql#post-11851</link>
<pubDate>Thu, 08 Nov 2007 12:51:24 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">11851@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a query and it shows me 5 results&#60;/p&#62;
&#60;p&#62;Now, I always need the id from row 2 (result 2). How to get it?&#60;/p&#62;
&#60;p&#62;Greetz
&#60;/p&#62;</description>
</item>
<item>
<title>Xenuan on "proplem after installing"</title>
<link>http://bbpress.org/forums/topic/proplem-after-installing#post-11358</link>
<pubDate>Tue, 09 Oct 2007 22:57:50 +0000</pubDate>
<dc:creator>Xenuan</dc:creator>
<guid isPermaLink="false">11358@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;ok, i did it (reason: different config file)&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "proplem after installing"</title>
<link>http://bbpress.org/forums/topic/proplem-after-installing#post-11356</link>
<pubDate>Tue, 09 Oct 2007 20:31:05 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">11356@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can you add this line to config.php:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$bb-&#38;gt;debug = 1;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You can put it near the top after the database details. That should give you some useful information.
&#60;/p&#62;</description>
</item>
<item>
<title>Xenuan on "proplem after installing"</title>
<link>http://bbpress.org/forums/topic/proplem-after-installing#post-11354</link>
<pubDate>Tue, 09 Oct 2007 16:55:11 +0000</pubDate>
<dc:creator>Xenuan</dc:creator>
<guid isPermaLink="false">11354@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;After installing the bbPress, i can't see my topics, forums, tags... (everything) i tried everything but i cant fixed :(&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.bilgisinema.org/forum&#34; rel=&#34;nofollow&#34;&#62;http://www.bilgisinema.org/forum&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "mysql.sock error ?"</title>
<link>http://bbpress.org/forums/topic/mysqlsock-error-#post-11289</link>
<pubDate>Fri, 05 Oct 2007 14:04:06 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">11289@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sounds like your problem was discussed here:&#60;br /&#62;
&#60;a href=&#34;http://bbpress.org/forums/topic/db-access-problem-in-the-first-installation-step?replies=15&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/db-access-problem-in-the-first-installation-step?replies=15&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Check out the patch that is attached to this ticket:&#60;br /&#62;
&#60;a href=&#34;http://trac.bbpress.org/ticket/745&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/ticket/745&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It worked for another user.  Good luck.
&#60;/p&#62;</description>
</item>
<item>
<title>Herseycix on "mysql.sock error ?"</title>
<link>http://bbpress.org/forums/topic/mysqlsock-error-#post-11287</link>
<pubDate>Fri, 05 Oct 2007 13:53:44 +0000</pubDate>
<dc:creator>Herseycix</dc:creator>
<guid isPermaLink="false">11287@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /vhosts/domain.com/http/1/bb-includes/db-mysqli.php on line 80&#60;/p&#62;
&#60;p&#62;Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /vhosts/domain.com/http/1/bb-includes/db-mysqli.php on line 80&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /vhosts/domain.com/http/1/bb-includes/db-mysqli.php:80) in /vhosts/domain.com/http/1/bb-admin/install.php on line 10&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /vhosts/domain.com/http/1/bb-includes/db-mysqli.php:80) in /vhosts/domain.com/http/1/bb-includes/functions.php on line 1898
&#60;/p&#62;</description>
</item>
<item>
<title>goebelmasse on "Wrong user count"</title>
<link>http://bbpress.org/forums/topic/wrong-user-count#post-10315</link>
<pubDate>Mon, 20 Aug 2007 14:22:35 +0000</pubDate>
<dc:creator>goebelmasse</dc:creator>
<guid isPermaLink="false">10315@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Oh, thank you SamBauers - this is the information missing on this site...&#60;/p&#62;
&#60;p&#62;But as I read at the trac site, the problem is already known. It is fixed by &#60;a href=&#34;http://trac.bbpress.org/changeset/872/branches/0.8?old_path=%2F&#38;#38;format=zip&#34;&#62;changeset 867&#60;/a&#62; - at least in my test environment. I'll upload it to the real server, it seems to be okay and of course it will be better than my quick and dirty &#34;solution&#34;...
&#60;/p&#62;</description>
</item>

</channel>
</rss>
