php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17673 error 6 errcode 13 when trying to drop database
Submitted: 2002-06-09 22:28 UTC Modified: 2002-07-07 22:25 UTC
From: adam at adeptsoftware dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.2 OS: winxp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 - 12 = ?
Subscribe to this entry?

 
 [2002-06-09 22:28 UTC] adam at adeptsoftware dot com
I can't figure out what's going on here, but maybe this info will be enough.
It appears that PHP is sometimes keeping a DB connection open after it exits.  This makes it so the tables can't be dropped until they are flushed (the files are locked)

From my debugging, my guess is that a second connection may be made to the DB and one of them is not released by php.  In process explorer, I saw that there were 2 connections to a table, but they had different cases - one connection called the database "Test" and the other "test".  This is my best guess as to the problem.

The automatic connection on query feature may be starting the second connection.  I see no way to detect if a connection exists already or i'd test this..?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-07 22:25 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC