Unable to modify a table
        Posted  
        
            by the Hampster
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by the Hampster
        
        
        
        Published on 2010-05-20T06:59:37Z
        Indexed on 
            2010/05/20
            7:10 UTC
        
        
        Read the original article
        Hit count: 233
        
mysql
I'm having trouble with mysql.  I can read and write, but now I want to add some fields to a table.  I run this command:
    ALTER TABLE Pubs ADD COLUMN issue tinyint AFTER volume;
but get this error message:
    ERROR 7 (HY000): Error on rename of './user_acct/Pubs.MYI' to './user_acct/#sql2-cb0-76f2.MYI' (Errcode: 13)
I created this table a few months ago, modified it a little bit, so it worked then. I can still update and insert items, but I just can't modify the table anymore.
Any help would be appreciated.
--Dave
© Stack Overflow or respective owner