Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Error occured when I tried to upload a pic.  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

tkouk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Error occured when I tried to upload a pic.
« on: September 17, 2004, 06:55:47 pm »

It was not  the first time I uploaded a pic, obviously, but this happened now without any obvious reason....

I get this common message: There was an error while processing a database query. in every page that connect to the db
and in debug mode I get that the error is in tjis query:

While executing query "SELECT count(*) FROM cpg130_pictures WHERE approved = 'NO'" on 0

mySQL error: Can't open file: 'cpg130_pictures.MYI'. (errno: 145)


or

While executing query "SELECT count(*) FROM cpg130_pictures, cpg130_albums WHERE cpg130_pictures.aid = cpg130_albums.aid AND category = 2" on 0

mySQL error: Can't open file: 'cpg130_pictures.MYI'. (errno: 145)


I obviously need info about the file 'cpg130_pictures.MYI'

Any help aprecciated ;)
« Last Edit: September 17, 2004, 10:18:54 pm by GauGau »
Logged

yoshikiwei

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 68
Re: Error occured when I tried to upload a pic.
« Reply #1 on: September 17, 2004, 08:21:36 pm »

sounds like you got a corrupted table

do you have access to MySQL commands ? if yes, try the following to repair your table

login to MySQL
Code: [Select]
mysql -u yourdbusername -h yourhostname yourdbname --password=yourdbpassword
use the repair command
Code: [Select]
repair table cpg130_pictures;
or try this from shell if the above doesn't work
Code: [Select]
myisamchk -r cpg130_pictures
if all failed, you might have to restore the table from a backup copy, provided you do have one  ;)
Logged

tkouk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Error occured when I tried to upload a pic.
« Reply #2 on: September 17, 2004, 08:47:07 pm »

Thanx a lot my friend!
REPAIRing the table worked just fine! ;D

Regards from Greece!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.