in reply to OT: complete loss of a new table

What could have happened?

You or someone else DROPed or RENAMEd the table? You USEd the wrong database?

Have you encountered this sort of things before?

No and to be realistic it is unlikely that you have uncovered a bug in MySQL. The spontanteous loss of tables is the kind of thing people notice. You can see if what is really there by looking at the raw data dir. A database is a directory. A table is 3 files within that directory. For example:

[root@devel3 mysql]# locate mysql/test /var/lib/mysql/test /var/lib/mysql/test/testac.frm /var/lib/mysql/test/testac.MYI /var/lib/mysql/test/testac.MYD /var/lib/mysql/test/base.frm /var/lib/mysql/test/base.MYI /var/lib/mysql/test/base.MYD

My mysql data dir is /var/lib/mysql. The test database has two tables called 'testac' and 'base'. If by chance you can see the .frm, MYI and .MYD tables that correspond to your table check their perms. You could just do 'locate -u; locate missing_table.MYD

cheers

tachyon

Replies are listed 'Best First'.
Re^2: OT: complete loss of a new table
by kiat (Vicar) on Oct 08, 2004 at 03:38 UTC
    Thanks, tachyon :)

    You or someone else DROPed or RENAMEd the table? You USEd the wrong database?
    Very unlikely as I'm the only one with access to the database.

    The database is hosted on another server. I am not quite sure if I can access that server to look at the database's directory. The server that's hosting the site ia shared server.

    I've since re-created the table and gone through basically the same steps as I did before. There's no problem the second round.

    But I'm puzzled what happened on my first attempt.

      So just let me get this straight ;-) According to you:

      1. You think you are the only one with access to the database.
      2. The database is on another server
      3. It is a shared server
      4. You apparently don't have root on that server

      Kneel before me, for I am ROOT, and your data is mine to behold

      cheers

      tachyon

        Hm...so are you suggesting using a shared server is bad? Since whoever owns the server ownz you?