Bug #35486 'no database selected' error sometimes, but not all the time
Submitted: 21 Mar 2008 17:00 Modified: 22 Apr 2008 7:23
Reporter: joe mazimoo Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Linux
Assigned to: CPU Architecture:Any
Tags: No database selected

[21 Mar 2008 17:00] joe mazimoo

Im getting a no database selected error, somewhat randomly but more when you click fast between two buttons...

I have a website that gets list of topics from a forum and lists them vertically.

When you click each topic name it POSTS the TOPIC_ID to another page, where it then require('function.php') of which the function connects to a mysql server, and runs a SQL query finding and listing all posts equivalent to the TOPIC_ID.

I have no idea why this is the problem.

Many Thanks

How to repeat:
Clicking too many times to run the function that connect to database

Suggested fix:
Sometimes it seems that, its connecting too many times, or running the function too many times? I don't know...

Is there a way to make it run the whole function before allowing it to start again? 

This may not be the problem
[22 Mar 2008 7:23] Sveta Smirnova
Thank you for the report.

But the bugs system is for tracking bugs in MySQL code, but not for help with any third-party program.

Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/

If you think your problem is MySQL code and not web application please provide repeatable test case.
[22 Apr 2008 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".