<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged database-error</title>
<link>https://www.question2answer.org/qa/tag/database-error</link>
<description>Powered by Question2Answer</description>
<item>
<title>Database problem with a plug6</title>
<link>https://www.question2answer.org/qa/117144/database-problem-with-a-plug6</link>
<description>

&lt;p&gt;Sampriti, I created a plugin with the help of AI.&amp;nbsp;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=14636026859527223780&quot; style=&quot;height:1266px; width:600px&quot;&gt;The platform is basically for asking many questions at the same time. The plugin has the following problem.&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=16681329534259436693&quot; style=&quot;height:109px; width:600px&quot;&gt;Can anyone give me a solution?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/117144/database-problem-with-a-plug6</guid>
<pubDate>Wed, 07 May 2025 12:25:06 +0000</pubDate>
</item>
<item>
<title>Data database query failed</title>
<link>https://www.question2answer.org/qa/110889/data-database-query-failed</link>
<description>I get this exactly when i click tags or favorite menus: &lt;br /&gt;
&lt;br /&gt;
A Question2Answer database query failed when generating this page.&lt;br /&gt;
&lt;br /&gt;
A full description of the failure is available in the web server's error log file.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/110889/data-database-query-failed</guid>
<pubDate>Sat, 14 Oct 2023 12:50:50 +0000</pubDate>
</item>
<item>
<title>Blog Post Plugin Integration Error</title>
<link>https://www.question2answer.org/qa/110025/blog-post-plugin-integration-error</link>
<description>

&lt;p&gt;Hi @Q2A Community...&lt;/p&gt;

&lt;p&gt;I have just integrated Q2A blog plugin by&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/JaxiroKe/q2a-blog-post&quot;&gt;JaxiroKe.&lt;/a&gt; But, after activating this plugin I got many error. and also there is no option of blog setting showing in Admin section. Can anyone solve this problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ERROR :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: Undefined variable: navcategories in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;51&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: Undefined index: in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;63&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: Trying to access array offset on value of type null in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;63&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: Undefined variable: suggest in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;109&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Notice&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: Undefined variable: navcategories in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;112&lt;/strong&gt;
&lt;br&gt;
&lt;br&gt;&lt;strong&gt;Warning&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;: count(): Parameter must be an array or an object that implements Countable in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;/www/wwwroot/site.com/Q2/qa-plugin/q2a-blog-post/article/article-feed.php&lt;/strong&gt;&lt;span style=&quot;font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-size:14px&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;112&lt;/strong&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/110025/blog-post-plugin-integration-error</guid>
<pubDate>Sat, 19 Aug 2023 07:30:41 +0000</pubDate>
</item>
<item>
<title>Q2A not create table when first running</title>
<link>https://www.question2answer.org/qa/102210/q2a-not-create-table-when-first-running</link>
<description>

&lt;p&gt;First time I start running Q2A site but i got belows error in nginx error log:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;span style=&quot;color:#569cd6&quot;&gt;2022&lt;/span&gt;/&lt;span style=&quot;color:#569cd6&quot;&gt;07&lt;/span&gt;/&lt;span style=&quot;color:#569cd6&quot;&gt;06&lt;/span&gt; &lt;span style=&quot;color:#6a9955&quot;&gt;18:01:20&lt;/span&gt; &lt;strong&gt;[error]&lt;/strong&gt; &lt;span style=&quot;color:#569cd6&quot;&gt;18996&lt;/span&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;22728&lt;/span&gt;: *&lt;span style=&quot;color:#569cd6&quot;&gt;7&lt;/span&gt; FastCGI sent in stderr: &quot;PHP &lt;strong&gt;Fatal&lt;/strong&gt; &lt;strong&gt;error:&lt;/strong&gt; &amp;nbsp;Uncaught mysqli_sql_exception: Table &lt;span style=&quot;color:#ce9178&quot;&gt;'q2a_db.qa_options'&lt;/span&gt; doesn't exist in H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt;:&lt;span style=&quot;color:#569cd6&quot;&gt;227&lt;/span&gt;
&lt;br&gt;Stack trace:
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;0&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;227&lt;/span&gt;): mysqli-&amp;gt;query()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;1&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;202&lt;/span&gt;): qa_db_query_execute()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;2&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;557&lt;/span&gt;): qa_db_query_raw()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;3&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;590&lt;/span&gt;): qa_db_single_select()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;4&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\app\options.php(&lt;span style=&quot;color:#569cd6&quot;&gt;135&lt;/span&gt;): qa_db_multi_select()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;5&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;base.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;403&lt;/span&gt;): qa_preload_options()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;6&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;page.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;36&lt;/span&gt;): qa_initialize_postdb_plugins()
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;7&lt;/span&gt; H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;index.php&lt;/span&gt;(&lt;span style=&quot;color:#569cd6&quot;&gt;188&lt;/span&gt;): require(&lt;span style=&quot;color:#ce9178&quot;&gt;'...'&lt;/span&gt;)
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;8&lt;/span&gt; H:\nginx_test\nginx\qa\index.php(&lt;span style=&quot;color:#569cd6&quot;&gt;27&lt;/span&gt;): require(&lt;span style=&quot;color:#ce9178&quot;&gt;'...'&lt;/span&gt;)
&lt;br&gt;#&lt;span style=&quot;color:#569cd6&quot;&gt;9&lt;/span&gt; {main}
&lt;br&gt;&amp;nbsp; thrown in H:\nginx_test\nginx\qa\qa-include\qa-&lt;span style=&quot;color:#569cd6&quot;&gt;db.php&lt;/span&gt; on line &lt;span style=&quot;color:#569cd6&quot;&gt;227&lt;/span&gt;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot; while reading response header from upstream, client: 127.0.0.1, server: localhost, request: &quot;&lt;/span&gt;GET / HTTP/&lt;span style=&quot;color:#569cd6&quot;&gt;1&lt;/span&gt;.&lt;span style=&quot;color:#569cd6&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;, upstream: &quot;&lt;/span&gt;&lt;span style=&quot;color:#569cd6&quot;&gt;fastcgi://127.0.0.1:9000&lt;/span&gt;&lt;span style=&quot;color:#ce9178&quot;&gt;&quot;, host: &quot;&lt;/span&gt;&lt;span style=&quot;color:#569cd6&quot;&gt;127&lt;/span&gt;.&lt;span style=&quot;color:#569cd6&quot;&gt;0&lt;/span&gt;.&lt;span style=&quot;color:#569cd6&quot;&gt;0&lt;/span&gt;.&lt;span style=&quot;color:#6a9955&quot;&gt;1:81&lt;/span&gt;&quot;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Obviously, it has successfully connected to the database service, but has not accessed the specified table.
&lt;br&gt;It looks the site not create required table in database at first running.&lt;/p&gt;

&lt;p&gt;What I do:
&lt;br&gt;Configure the site according to &quot;&lt;a href=&quot;https://docs.question2answer.org/install/&quot;&quot; rel=&quot;nofollow&quot;&gt;https://docs.question2answer.org/install/&quot;&lt;/a&gt;.
&lt;br&gt;Start &lt;strong&gt;php-cgi.exe&lt;/strong&gt;,&amp;nbsp;start &lt;strong&gt;nginx.exe&lt;/strong&gt;, access &lt;strong&gt;index.php&lt;/strong&gt;.&amp;nbsp;
&lt;br&gt;=&amp;gt; Got &lt;strong&gt;state code 500&lt;/strong&gt;, got error above in &lt;strong&gt;error.log&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What should I do?&lt;/p&gt;

&lt;p&gt;Software version:
&lt;br&gt;Q2A: 1.8.6
&lt;br&gt;PHP: 8.1.8
&lt;br&gt;nginx: 1.23.0
&lt;br&gt;MySQL: 8.0.25&lt;/p&gt;

&lt;p&gt;OS: windows 10&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/102210/q2a-not-create-table-when-first-running</guid>
<pubDate>Thu, 07 Jul 2022 04:52:06 +0000</pubDate>
</item>
<item>
<title>&quot;Table 'dbname.qa_options' doesn't exist&quot;</title>
<link>https://www.question2answer.org/qa/101159/table-dbname-qa_options-doesnt-exist</link>
<description>

&lt;p&gt;I've installed question2answer on a server from &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.question2answer.org/install/&quot;&gt;these instructions&lt;/a&gt;&amp;nbsp;on an Ubuntu 22.04 server in AWS with Apache/2.4.52 and&amp;nbsp;MariaDB Ver 15.1 Distrib 10.6.7-MariaDB.&amp;nbsp; There are no plugins being used.&lt;/p&gt;

&lt;p&gt;Whenever I get to step 9, I get a 500 error, and when I look at the logs, I see that I'm getting this error--&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;Uncaught mysqli_sql_exception: Table 'dbname.qa_options' doesn't exist in /var/www/html/qa-include/qa-db.php:227&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I've double- and triple-checked the database credentials.&amp;nbsp; And it also looks like&amp;nbsp;&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;qa_db_create_table_sql&lt;/span&gt; is not being called at all.&lt;/p&gt;

&lt;p&gt;I see there are similar questions asked here through the years, but I'm finding no answers relevant to my setup.&lt;/p&gt;

&lt;p&gt;I'm going to try to continue debugging this on my end to try to find out why this function isn't being called, but if anyone knows how to resolve this, please let me know.&lt;/p&gt;

&lt;p&gt;Update: As a workaround, I put this at the beginning of qa_index_set_request() in qa-include/qa-index.php.&lt;/p&gt;

&lt;pre&gt;     &lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;// MANUAL CORRECTION.&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;     // install if request_uri is &quot;install-0462&quot;&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;     if ($_SERVER['REQUEST_URI'] == '/install-0462') {&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             $msg = 'Starting manual fix for broken installation process.';&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             error_log($msg);&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             require QA_INCLUDE_DIR . '/db/install.php';&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             qa_db_install_tables();&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             qa_db_upgrade_tables();&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             $msg = &quot;Completed installing.&quot;;&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             error_log($msg);&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;             exit();&lt;/span&gt;
&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;     }&lt;/span&gt;

&lt;span style=&quot;font-family:Courier New,Courier,monospace&quot;&gt;     // END MANUAL CORRECTION.&lt;/span&gt;
&lt;/pre&gt;

&lt;p&gt;Then I just went to /install-0462 and it installed correctly.&lt;/p&gt;

&lt;p&gt;That doesn't fix the problem, I guess, but it's working correctly otherwise, so far.&amp;nbsp; I also had to manually change the user permissions to get an admin user.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/101159/table-dbname-qa_options-doesnt-exist</guid>
<pubDate>Fri, 13 May 2022 05:18:48 +0000</pubDate>
</item>
<item>
<title>Error when updating q2a</title>
<link>https://www.question2answer.org/qa/94415/error-when-updating-q2a</link>
<description>

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://ibb.co/8NdW0sk&quot;&gt;https://ibb.co/8NdW0sk&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/94415/error-when-updating-q2a</guid>
<pubDate>Sun, 04 Jul 2021 03:04:57 +0000</pubDate>
</item>
<item>
<title>Infinite loading when delete question or post an answer</title>
<link>https://www.question2answer.org/qa/92892/infinite-loading-when-delete-question-or-post-an-answer</link>
<description>

&lt;p&gt;I get an infinite loading when&amp;nbsp;&lt;em&gt;I try to delete a hidden post or to post an answer, I noticed that while I'm trying to delete directly through the database I get this error message:&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&amp;nbsp;#1451 - Cannot delete or update a parent row: a foreign key constraint fails (`qa`.`qa_posts`, CONSTRAINT `qa_posts_ibfk_2` FOREIGN KEY (`parentid`) REFERENCES `qa_posts` (`postid`))&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/92892/infinite-loading-when-delete-question-or-post-an-answer</guid>
<pubDate>Wed, 05 May 2021 19:24:06 +0000</pubDate>
</item>
<item>
<title>What to do when my mysql database runs out of storage space?</title>
<link>https://www.question2answer.org/qa/89898/what-to-do-when-my-mysql-database-runs-out-of-storage-space</link>
<description>I have a q2a website and my host provider (hostinger) allows to create databases with a maximum disk space of 3GB. What will happen if the databases runs out of storage? Will the users be able to ask, answer and comment.&lt;br /&gt;
&lt;br /&gt;
Is there any way to link the old and new database(which i can create) and get the new entries registered into the new database.&lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/89898/what-to-do-when-my-mysql-database-runs-out-of-storage-space</guid>
<pubDate>Wed, 23 Dec 2020 13:56:15 +0000</pubDate>
</item>
<item>
<title>Database bug - shows wrong number of posts waiting to be moderate</title>
<link>https://www.question2answer.org/qa/88049/database-bug-shows-wrong-number-of-posts-waiting-to-moderate</link>
<description>

&lt;p&gt;Hello
&lt;br&gt;
&lt;br&gt;As in the subject. If there's no posts waiting to be moderate it shows &quot;Moderate (1)&quot;.
&lt;br&gt;
&lt;br&gt;It's probably because I have recently accepted one post and then just immediately jumped to other page without waiting enough time to proceed the query well through the database.
&lt;br&gt;
&lt;br&gt;What can I do with that issue now?&lt;/p&gt;

&lt;p&gt;Note: I've done almost all of database clean-up operations, only without refill event streams (it stops in the middle of process and doesn't go any further).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EDIT: The main problem is solved&lt;/strong&gt;
&lt;br&gt;How? I don't know, it dissolved on its own. One time I've accepted a single post and then the number of posts waiting for approval just fixed. However, the option of refill event streams on stats page still seems to doesn't work properly (it stops during the process) but that doesn't cause any visible problems.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/88049/database-bug-shows-wrong-number-of-posts-waiting-to-moderate</guid>
<pubDate>Sun, 04 Oct 2020 02:52:41 +0000</pubDate>
</item>
<item>
<title>How to display custom message when mysql error in q2a</title>
<link>https://www.question2answer.org/qa/86019/how-to-display-custom-message-when-mysql-error-in-q2a</link>
<description>

&lt;p&gt;I want to display custom message when sql queries fail in q2a.&lt;/p&gt;

&lt;p&gt;Instead of showing entire table and red color error.&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=3581478868219713066&quot; style=&quot;height:324px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;Example in mysqli -&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;box-sizing:inherit; color:mediumblue; font-family:Consolas,&amp;quot;courier new&amp;quot;; font-size:15px&quot; class=&quot;phpkeywordcolor&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Consolas,&amp;quot;courier new&amp;quot;; font-size:15px&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:inherit; color:brown; font-family:Consolas,&amp;quot;courier new&amp;quot;; font-size:15px&quot; class=&quot;phpstringcolor&quot;&gt;&quot;Error creating table: &quot;&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Consolas,&amp;quot;courier new&amp;quot;; font-size:15px&quot;&gt;&amp;nbsp;. $conn-&amp;gt;error;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;How to show custom message for q2a query errors.&lt;/p&gt;

&lt;p&gt;1. table already exists&lt;/p&gt;

&lt;p&gt;2. sql query failed&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/86019/how-to-display-custom-message-when-mysql-error-in-q2a</guid>
<pubDate>Tue, 14 Jul 2020 17:33:48 +0000</pubDate>
</item>
<item>
<title>Database error occured when approve any posts in admin-moderate. Hwo to solve?</title>
<link>https://www.question2answer.org/qa/82347/database-error-occured-approve-posts-admin-moderate-solve</link>
<description></description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/82347/database-error-occured-approve-posts-admin-moderate-solve</guid>
<pubDate>Mon, 30 Mar 2020 06:41:25 +0000</pubDate>
</item>
<item>
<title>Unable to change storage engine &quot; see the error below&quot; please help</title>
<link>https://www.question2answer.org/qa/80719/unable-change-storage-engine-see-the-error-below-please-help</link>
<description>

&lt;p&gt;&lt;/p&gt;

&lt;pre&gt;ALTER TABLE `qtoa_posts`
ENGINE = MYISAM
&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MySQL said:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;#1217 - Cannot delete or update a parent row: a foreign key constraint fails&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/80719/unable-change-storage-engine-see-the-error-below-please-help</guid>
<pubDate>Tue, 21 Jan 2020 14:12:59 +0000</pubDate>
</item>
<item>
<title>A Question2Answer database query failed when generating this page.</title>
<link>https://www.question2answer.org/qa/80451/question2answer-database-query-failed-when-generating-this</link>
<description>

&lt;p&gt;&lt;span style=&quot;background-color:#0b0b0b; color:#f1ebd8; font-family:&amp;quot;open sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,Arial,sans-serif; font-size:14px&quot;&gt;[Tue Jan 07 02:54:08.897800 2020] [:error] [pid 13326:tid 140569487709952] [client 41.114.29.168:40554] PHP Question2Answer MySQL query error 1044: Access denied for user 'satechh_thom'@'&lt;/span&gt;&lt;span style=&quot;background-color:#0b0b0b; color:#f1ebd8; font-family:&amp;quot;open sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,Arial,sans-serif; font-size:14px&quot;&gt;' to database 'satechh_ddd&lt;/span&gt;&lt;span style=&quot;background-color:#0b0b0b; color:#f1ebd8; font-family:&amp;quot;open sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,Arial,sans-serif; font-size:14px&quot;&gt;' - Query: LOCK TABLES qtoa_words WRITE, referer: &lt;a href=&quot;https://www.satechhelp.co.za/37887/how-to-hard-reset-techno-pop-smart-phone&quot; rel=&quot;nofollow&quot;&gt;https://www.satechhelp.co.za/37887/how-to-hard-reset-techno-pop-smart-phone&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/80451/question2answer-database-query-failed-when-generating-this</guid>
<pubDate>Tue, 07 Jan 2020 01:00:14 +0000</pubDate>
</item>
<item>
<title>mysqli::error is empty</title>
<link>https://www.question2answer.org/qa/79254/mysqli-error-is-empty</link>
<description>

&lt;p&gt;I am trying to set up Q2A inside a docker container (running Ubuntu 18.04). I am able to get it to connect to my (empty) DB, but am then running into problems with the installation. First off, if I just visit the base URL, I get this:&lt;/p&gt;

&lt;p style=&quot;text-align:center&quot;&gt;Your Question2Answer database has been checked with no problems.&lt;/p&gt;

&lt;p style=&quot;text-align:center&quot;&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://domain.removed.invalid.net/index.php?qa=admin&quot;&gt;Go to admin center&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicking the link effectively does nothing as I get served up the same page again. Time to roll up the&amp;nbsp;sleeves and go code diving.&lt;/p&gt;

&lt;p&gt;After exploring for a while, I tried manually accessing the URL:&amp;nbsp;index.php?qa=install&lt;/p&gt;

&lt;p&gt;This then gave me:&lt;/p&gt;

&lt;p style=&quot;text-align:center&quot;&gt;&lt;span style=&quot;color:#ff0000&quot;&gt;Database set_charset error&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Seemingly not very helpful on the surface, but what it has so far boiled down to is that the call to mysqli::set_charset() inside of&amp;nbsp;qa_db_connect() is returning false, and yet mysqli::$errno and&amp;nbsp;mysqli::$error are both empty immediately afterwards. Here is the code in question (from line 94 in qa-include/qa-db.php):&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#c586c0&quot;&gt;if&lt;/span&gt; (!&lt;span style=&quot;color:#9cdcfe&quot;&gt;$db&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color:#dcdcaa&quot;&gt;set_charset&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;'utf8'&lt;/span&gt;))&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color:#dcdcaa&quot;&gt;qa_db_fail_error&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;'set_charset'&lt;/span&gt;, &lt;span style=&quot;color:#9cdcfe&quot;&gt;$db&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color:#9cdcfe&quot;&gt;errno&lt;/span&gt;, &lt;span style=&quot;color:#9cdcfe&quot;&gt;$db&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color:#9cdcfe&quot;&gt;error&lt;/span&gt;);&lt;/p&gt;

&lt;p&gt;Googling this issue so far is turning up nothing helpful unfortunately. If I try setting up Q2A on my development server (in a Joomla sub-directory, incidentally) I don't run into these problems and get t the page prompting me to set up the database.&lt;/p&gt;

&lt;p&gt;As far as I can tell, my docker container is configured correctly. I am using Apache, PHP-FPM (7.3) and have installed the following php extensions:&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php-common&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2:70+ubuntu18.04.1+deb.sury.org+6&amp;nbsp; &amp;nbsp; &amp;nbsp; all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Common files for PHP packages&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; server-side, HTML-embedded scripting language (metapackage)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-cli&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; command-line interpreter for the PHP scripting language&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-common&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; documentation, examples and common module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-curl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CURL module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-fpm&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; server-side, HTML-embedded scripting language (FPM-CGI binary)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-gd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GD module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-intl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Internationalisation module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-json&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JSON module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-mbstring&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MBSTRING module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-mysql&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MySQL module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-opcache&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Zend OpCache module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-readline&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; readline module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-xml&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DOM, SimpleXML, WDDX, XML, and XSL module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;ii&amp;nbsp; php7.3-zip&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.3.11-1+ubuntu18.04.1+deb.sury.org+1&amp;nbsp; amd64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Zip module for PHP&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Lastly, out of curiosity, I tried ignoring the false return from set_charset and allowing the code to proceed. With that change, I then get a similar error on the first SQL query executed:&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#ff0000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;Database query error&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;text-align:center&quot;&gt;&lt;/p&gt;

&lt;p&gt;SELECT title, content FROM qa_options&lt;/p&gt;

&lt;p&gt;Again, the query called returned false and yet the error details are empty. Any clues greatly appreciated!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/79254/mysqli-error-is-empty</guid>
<pubDate>Thu, 14 Nov 2019 19:17:30 +0000</pubDate>
</item>
<item>
<title>PHP message: PHP Question2Answer MySQL query error 42000: SQLSTATE[42000]</title>
<link>https://www.question2answer.org/qa/76787/message-question2answer-mysql-query-error-42000-sqlstate</link>
<description>

&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I've setup a Q&amp;amp;A using the following versions:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;&lt;strong&gt;Ubuntu 18, (using NGINX)&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Q&amp;amp;A version 1.8.3&amp;nbsp;&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;MySQL 5.7&amp;nbsp;&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;PHP 7.2&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;My authentication is via LDAP and it's working pretty good.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;However, I noticed that when we try to add a new question, the following message pops out in the screen:&lt;/p&gt;

&lt;pre&gt;A Question2Answer database query failed when generating this page.

A full description of the failure is available in the web server's error log file.&lt;/pre&gt;

&lt;p&gt;So I went to the logs [/var/log/nginx/error.log] and found the following issues:&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;&lt;sup&gt;&lt;span style=&quot;background-color:#dddddd&quot;&gt;PHP message: PHP Question2Answer MySQL query error 42000: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Array','Array','Array','Array','Array','Array','Array','Array','Array'' at line 1 - Query: INSERT IGNORE INTO qa_words (word) VALUES ?,?,?,?,?,?,?,?,?&quot; while reading response header from upstream, client: 10.2.40.200, server: devwiki.brq.com, request: &quot;POST /qa/index.php?qa=ask HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php/php7.2-fpm.sock:&quot;, host: &quot;devwiki.brq.com&quot;, referrer: &quot;http://devwiki.brq.com/qa/index.php?qa=ask&quot;&lt;/span&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;I would like to know if there is an especific version of MySQL to be installed, or anything else that must be done or adjusted to get ride of this error.&lt;/p&gt;

&lt;p&gt;Appreciate any help,&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;pre&gt;Details:&lt;/pre&gt;

&lt;table style=&quot;width:707px; border-spacing: 0px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;pre&gt; PHP:&lt;/pre&gt;&lt;/td&gt;

&lt;td&gt;

&lt;pre&gt;7.2.19-0ubuntu0.18.04.1&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;pre&gt;MySQL:&lt;/pre&gt;&lt;/td&gt;

&lt;td&gt;

&lt;pre&gt;5.7.26-0ubuntu0.18.04.1&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/76787/message-question2answer-mysql-query-error-42000-sqlstate</guid>
<pubDate>Wed, 24 Jul 2019 18:52:36 +0000</pubDate>
</item>
<item>
<title>Blog Post plugin error | A Question2Answer database query failed</title>
<link>https://www.question2answer.org/qa/74400/blog-post-plugin-error-question2answer-database-query-failed</link>
<description>

&lt;p&gt;I got this error -&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;[26-Apr-2019 06:25:57 UTC] PHP Question2Answer MySQL query error 1054: Unknown column 'catid' in 'where clause' - Query: SELECT COUNT(*) FROM qa_blog_posts WHERE catid&amp;lt;=&amp;gt;NULL AND type='P'&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;How to remove this error.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#bb0000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;A Question2Answer database query failed when generating this page.&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;&lt;span style=&quot;color:#bb0000; font-family:Verdana,Arial,Helvetica,sans-serif&quot;&gt;A full description of the failure is available in the web server's error log file.&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/74400/blog-post-plugin-error-question2answer-database-query-failed</guid>
<pubDate>Fri, 26 Apr 2019 06:32:17 +0000</pubDate>
</item>
<item>
<title>&quot;A database error occurred.&quot; when &quot;Recount posts&quot;</title>
<link>https://www.question2answer.org/qa/73642/a-database-error-occurred-when-recount-posts</link>
<description>

&lt;p&gt;First I did&amp;nbsp;direct import of posts to DB in phpmyadmin. So now I need recount, reindex etc.&lt;/p&gt;

&lt;p&gt;Reindex content done, recalculate categories done, recalculate user points done. But when I start&amp;nbsp;Recount posts its work ~300-350 k post (from 650 k ) and I take&amp;nbsp;&quot;A database error occurred.&quot;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I try start it in browser without JavaSript, but of course script can't work such long time.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;How can I solve it?&lt;/p&gt;

&lt;p&gt;And maybe somebody know good varints how do import of Q and A from CSV&amp;nbsp;correctly, with all indexes? Read&amp;nbsp;this &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.question2answer.org/qa/1222/what-is-the-best-way-for-me-to-upload-lot-of-questions-to-the-db&quot;&gt;https://www.question2answer.org/qa/1222/what-is-the-best-way-for-me-to-upload-lot-of-questions-to-the-db&lt;/a&gt;,&amp;nbsp; but as I&amp;nbsp;undestand its for old version and honestly hard for my understend.&lt;/p&gt;

&lt;p&gt;TNX&lt;/p&gt;

&lt;p&gt;UPD: starting process early morning, when server with minimal load - first part with recalculate&amp;nbsp;&lt;span style=&quot;color:#34495e; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;votes and&amp;nbsp;flags&lt;/span&gt;&amp;nbsp;done, but second with&amp;nbsp;&lt;span style=&quot;color:#34495e; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;answers and hotness broken again at ~50 000. Is it psible to turn off first part with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#34495e; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;votes and&amp;nbsp;flags? Wich file have this function?&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/73642/a-database-error-occurred-when-recount-posts</guid>
<pubDate>Mon, 25 Mar 2019 07:58:17 +0000</pubDate>
</item>
<item>
<title>Re-Install WebSite?</title>
<link>https://www.question2answer.org/qa/73549/re-install-website</link>
<description>MySQL Database was an error. I want to reinstall my website. But I don't want to lose questions, answers and labels. Other settings are not important.&lt;br /&gt;
&lt;br /&gt;
How do I reinstall my Web Site?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/73549/re-install-website</guid>
<pubDate>Wed, 20 Mar 2019 17:56:55 +0000</pubDate>
</item>
<item>
<title>ERROR 1698 (28000): Access denied for user 'root'@'localhost</title>
<link>https://www.question2answer.org/qa/71910/error-1698-28000-access-denied-for-user-root%40-localhost</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I've installed MySQL 5.7 on Ubuntu 18.04 after the installation it shows ERROR 1698 (28000): Access denied for user 'root'@'localhost, how to resolve this please let me know?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/71910/error-1698-28000-access-denied-for-user-root%40-localhost</guid>
<pubDate>Wed, 16 Jan 2019 08:53:06 +0000</pubDate>
</item>
<item>
<title>Resolving error-code: 1044, access denied</title>
<link>https://www.question2answer.org/qa/69513/resolving-error-code-1044-access-denied</link>
<description>I installed Ajax Chat widget, but there is error:&lt;br /&gt;
&lt;br /&gt;
Error-Report: Access denied for user 'mydatabaseusername'@'localhost' to database 'qachat' Error-Code: 1044&lt;br /&gt;
&lt;br /&gt;
Let, 'mydatabaseusername' is my database user name.&lt;br /&gt;
&lt;br /&gt;
Could you please resolve this issue?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/69513/resolving-error-code-1044-access-denied</guid>
<pubDate>Fri, 23 Nov 2018 21:13:40 +0000</pubDate>
</item>
</channel>
</rss>