Jump to content


Photo

Database Errors


  • Please log in to reply
3 replies to this topic

#1 Hynesm

Hynesm
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 30 October 2006 - 07:56 AM

I run a Global Online Text Game (www.landofknights.com) and have some strange problems occur very rarely. I run the game using PHP and MySQL with MySIAM databases. For some reason however, the database decided to set everyones level to 1 overnight, now I know you may think this is a hack, and here are my reasons for believing it is not:
  • It has happened 3 times, randomly, twice the link has been caused by deleteing a user.
  • Much of the site is secured using the mysql_real_escape_string() funtcion.
  • I do not believe it the host, it has happened on two host, most recently on my dedicated server (information as follows):

    Ram: 1GB of Ram

    Processor #1 Vendor: GenuineIntel
    Processor #1 Name: Intel® Xeon™ CPU 2.80GHz
    Processor #1 speed: 2801.559 MHz
    Processor #1 cache size: 1024 KB

    Processor #2 Vendor: GenuineIntel
    Processor #2 Name: Intel® Xeon™ CPU 2.80GHz
    Processor #2 speed: 2801.559 MHz
    Processor #2 cache size: 1024 KB

    Processor #3 Vendor: GenuineIntel
    Processor #3 Name: Intel® Xeon™ CPU 2.80GHz
    Processor #3 speed: 2801.559 MHz
    Processor #3 cache size: 1024 KB

    Processor #4 Vendor: GenuineIntel
    Processor #4 Name: Intel® Xeon™ CPU 2.80GHz
    Processor #4 speed: 2801.559 MHz
    Processor #4 cache size: 1024 KB

    On a Apache and Linux system with PHP 4.4.3 and MySQL 5.0.24.
  • It has done it on a lower version of MySQL and is the reason I upgraded.
Is it possible that it is because I don't use InnoDB?

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 30 October 2006 - 05:05 PM

Impossible to tell... you can turn on the binary logger, and make sure that there's no update statement being run that you don't know about.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 Hynesm

Hynesm
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 31 October 2006 - 07:02 AM

Thanks for the speedy reply, how do I turn on binary logger?
Thanks Mark

#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 31 October 2006 - 07:32 PM

It's somewhere in the my.cnf file, I don't recall.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users