Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default can't delete mysql db's :(

    Hi all,

    I have a new serious problem, its not posible to delte mysql databases.

    I always get the following error:

    Code:
    DBD::mysql::db do failed: Unknown column 'db' in 'where clause' at /usr/local/cpanel/Cpanel/Mysql.pm line 831. /usr/bin/mysqladmin: DROP DATABASE xxxx_agbook1 failed; error: 'Error dropping database (can't rmdir './xxxx_agbook1', errno: 39)'
    The problem exist on all domains on this server.

    Anybody here has the same problem?

    BTW: I'm running mysql 4.0.23-standard

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    37

    Default

    did you try ./upcp --force ?

    not sure if this will help. perhaps submit a ticket to cpanel and see wha they say.
    Tss -- Tweaking, securing, monitoring. We do it all @ TotalServerSolutions

  3. #3
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default

    Quote Originally Posted by theuruguayan
    did you try ./upcp --force ?
    Yes, now i don't have longer error messages BUT the database is still here
    I also tryed ./mysqlup --force with no results

    I tried to delete the db with phpmyadmin...
    Code:
    Server: localhost   Database: xxxx_osc1  
    Error 
    SQL-query: 
    
    DROP DATABASE `xxxx_osc1` 
    MySQL said:  
    
    #1010 - Error dropping database (can't rmdir './xxxx_osc1', errno: 39)
    U see, nothing happens

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    You may not be able to drop the database using phpmyadmin, is that the root (whm) phpmyadmin? You would need to use the users cPanel and access the mysql admin page (not phpmyadmin) and drop from there or

    Anyway, if you login to a shell session as root

    # mysql

    > DROP DATABASE user_agbook1;

    That will take care of it.

    I have found bugs with mysql 4.0.23 especially problems with my mysql nagios installs, I'd recommend upgrading that. If you are running an rpm distribution, you can download the rpms from your nearest mirror. eg. http://mysql.inspire.net.nz/downloads/mysql/4.0.html

  5. #5
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default

    Quote Originally Posted by DigitalN
    You may not be able to drop the database using phpmyadmin, is that the root (whm) phpmyadmin? You would need to use the users cPanel and access the mysql admin page (not phpmyadmin) and drop from there or
    Yes, it was the root phpmyadmin, same problem with clients phpmyadmin, I tried to delete the db over shell but same shit

    Code:
    root@server29 [~]# mysql
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 6863 to server version: 4.0.24-standard
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> DROP DATABASE xxxx_agbook1;
    ERROR 1010: Error dropping database (can't rmdir './xxxx_agbook1', errno: 39)
    mysql> exit
    Bye
    root@server29 [~]#

    I deleted the account and created a new one but the db's still exist

    Code:
    root@server29 [/var/lib/mysql]# ls -laht | grep xxxx
    drwx------   2 mysql mysql 4,0K 29. Mar 22:47 xxxx_ivbd1/
    drwx------   2 mysql mysql 4,0K 29. Mar 22:47 xxxx_ivbd2/
    drwx------   2 mysql mysql 4,0K 19. Nov 00:39 xxxx_agbook1/
    drwx------   2 mysql mysql 4,0K 19. Nov 00:39 xxxx_osc1/
    drwx------   2 mysql mysql 4,0K 19. Nov 00:39 xxxx_pchat1/
    drwx------   2 mysql mysql 4,0K 19. Nov 00:39 xxxx_phpbb2/
    
    root@server29 [/var/lib/mysql]# cd xxxx_agbook1/
    root@server29 [/var/lib/mysql/xxxx_agbook1]# ls -laht
    drwxr-x--x  80 mysql root  4,0K 29. Mar 22:53 ../
    drwx------   2 mysql mysql 4,0K 19. Nov 00:39 ./
    -rw-rw----   1 mysql mysql    0 16. Nov 23:57 book_com.MYD
    -rw-rw----   1 mysql mysql 1,0K 16. Nov 23:57 book_pics.MYI
    I'm not sure if it is a good idea to replace mysql on this server, I'll be killed if it fails

    THX for your tipps, if nothing helps I will replace mysql and pray

Similar Threads & Tags
Similar threads

  1. mySQL users will not delete
    By apc1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-28-2006, 10:15 AM
  2. Can not delete the Existing MySQL users...
    By ThunderHostingDotCom in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-20-2003, 06:09 PM
  3. not able to delete mysql db
    By cyon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-31-2003, 12:56 AM
  4. Can't delete MySQL users
    By sparek-3 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-20-2002, 09:30 PM
  5. cant delete mysql user
    By mamady in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-11-2002, 07:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube