mySQL error: Table 'p' is marked as crashed and should be repaired mySQL error: Table 'p' is marked as crashed and should be repaired
 

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]

Main Menu

mySQL error: Table 'p' is marked as crashed and should be repaired

Started by Katya, November 01, 2008, 08:12:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Katya

Hello guys. please help me
I open my gallery and see that:

While executing query "SELECT sum(hits) FROM pictures as p LEFT JOIN albums as a ON p.aid=a.aid WHERE 1" on 0

mySQL error: Table 'p' is marked as crashed and should be repaired

and this:
USER:
------------------
Array
(
    [ID] => 00d82e7714c28fdbe9018c7d21d73e3c
    [am] => 1
    [lang] => russian
    [lap] => 7
    [liv] => Array
        (
            [0] => 13523
            [1] => 13512
            [2] => 13584
            [3] => 10568
            [4] => 10561
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Katerina
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM filetypes; (0.009s)
    [1] => select * from plugins order by priority asc; (0.01s)
    [2] => delete from `eva_longoria_net_ru`.sessions where time<1225562969 and remember=0; (0.001s)
    [3] => delete from `eva_longoria_net_ru`.sessions where time<1224356969; (0s)
    [4] => select user_id from `eva_longoria_net_ru`.sessions where session_id=md5("8baeee862f96a78d3454f81bf55ce2713f2cd9fd325f0ba894c712bc638941c6"); (0s)
    [5] => select user_id as id, user_password as password from `eva_longoria_net_ru`.users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `eva_longoria_net_ru`.users AS u INNER JOIN `eva_longoria_net_ru`.usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `eva_longoria_net_ru`.users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  usergroups WHERE group_id= 1 (0s)
    [10] => update `eva_longoria_net_ru`.sessions set time='1225566569' where session_id=md5('8baeee862f96a78d3454f81bf55ce2713f2cd9fd325f0ba894c712bc638941c6'); (0s)
    [11] => SELECT user_favpics FROM favpics WHERE user_id = 1 (0.031s)
    [12] => DELETE FROM banned WHERE expiry < '2008-11-01 19:09:30' (0.002s)
    [13] => SELECT * FROM banned WHERE (ip_addr='77.241.38.10' OR ip_addr='77.241.38.10' OR user_id=1) AND brute_force=0 (0.018s)
    [14] => SELECT cid, name, description, thumb FROM categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM albums as a WHERE category>=10000 (0s)
    [16] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [17] => SELECT cid, name, description, thumb FROM categories WHERE parent = '1'  ORDER BY pos (0s)
    [18] => SELECT aid FROM albums WHERE category = 6 (0s)
    [19] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [20] => SELECT cid, name, description, thumb FROM categories WHERE parent = '6'  ORDER BY pos (0s)
    [21] => SELECT aid FROM albums WHERE category = 42 (0s)
    [22] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 42 (0s)
    [23] => SELECT aid FROM albums WHERE category = 43 (0s)
    [24] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 43 (0s)
    [25] => SELECT aid FROM albums WHERE category = 7 (0s)
    [26] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
    [27] => SELECT cid, name, description, thumb FROM categories WHERE parent = '7'  ORDER BY pos (0s)
    [28] => SELECT aid FROM albums WHERE category = 40 (0s)
    [29] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 40 (0s)
    [30] => SELECT aid FROM albums WHERE category = 41 (0s)
    [31] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 41 (0s)
    [32] => SELECT aid FROM albums WHERE category = 8 (0s)
    [33] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0s)
    [34] => SELECT cid, name, description, thumb FROM categories WHERE parent = '8'  ORDER BY pos (0s)
    [35] => SELECT aid FROM albums WHERE category = 38 (0s)
    [36] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 38 (0s)
    [37] => SELECT aid FROM albums WHERE category = 39 (0s)
    [38] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 39 (0s)
    [39] => SELECT aid FROM albums WHERE category = 15 (0s)
    [40] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0s)
    [41] => SELECT cid, name, description, thumb FROM categories WHERE parent = '15'  ORDER BY pos (0s)
    [42] => SELECT aid FROM albums WHERE category = 16 (0s)
    [43] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 16 (0s)
    [44] => SELECT aid FROM albums WHERE category = 17 (0s)
    [45] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 17 (0s)
    [46] => SELECT aid FROM albums WHERE category = 49 (0s)
    [47] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 49 (0s)
    [48] => SELECT aid FROM albums WHERE category = 18 (0s)
    [49] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 18 (0s)
    [50] => SELECT cid, name, description, thumb FROM categories WHERE parent = '18'  ORDER BY pos (0s)
    [51] => SELECT aid FROM albums WHERE category = 19 (0s)
    [52] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 19 (0s)
    [53] => SELECT aid FROM albums WHERE category = 20 (0s)
    [54] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 20 (0s)
    [55] => SELECT cid, name, description, thumb FROM categories WHERE parent = '20'  ORDER BY pos (0s)
    [56] => SELECT aid FROM albums WHERE category = 21 (0s)
    [57] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 21 (0s)
    [58] => SELECT aid FROM albums WHERE category = 22 (0s)
    [59] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 22 (0s)
    [60] => SELECT aid FROM albums WHERE category = 2 (0s)
    [61] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [62] => SELECT aid FROM albums WHERE category = 31 (0s)
    [63] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 31 (0s)
    [64] => SELECT aid FROM albums WHERE category = 23 (0s)
    [65] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 23 (0s)
    [66] => SELECT cid, name, description, thumb FROM categories WHERE parent = '23'  ORDER BY pos (0s)
    [67] => SELECT aid FROM albums WHERE category = 28 (0s)
    [68] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 28 (0s)
    [69] => SELECT aid FROM albums WHERE category = 29 (0s)
    [70] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 29 (0s)
    [71] => SELECT aid FROM albums WHERE category = 37 (0s)
    [72] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 37 (0s)
    [73] => SELECT aid FROM albums WHERE category = 30 (0s)
    [74] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 30 (0s)
    [75] => SELECT aid FROM albums WHERE category = 44 (0s)
    [76] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 44 (0s)
    [77] => SELECT cid, name, description, thumb FROM categories WHERE parent = '44'  ORDER BY pos (0s)
    [78] => SELECT aid FROM albums WHERE category = 45 (0s)
    [79] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 45 (0s)
    [80] => SELECT aid FROM albums WHERE category = 46 (0s)
    [81] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 46 (0s)
    [82] => SELECT aid FROM albums WHERE category = 47 (0s)
    [83] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 47 (0s)
    [84] => SELECT aid FROM albums WHERE category = 24 (0s)
    [85] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 24 (0s)
    [86] => SELECT cid, name, description, thumb FROM categories WHERE parent = '24'  ORDER BY pos (0s)
    [87] => SELECT aid FROM albums WHERE category = 25 (0s)
    [88] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 25 (0s)
    [89] => SELECT aid FROM albums WHERE category = 36 (0s)
    [90] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 36 (0s)
    [91] => SELECT aid FROM albums as a WHERE category = '0' (0s)
    [92] => SELECT count(*) FROM albums as a WHERE 1 (0s)
    [93] => SELECT count(*) FROM pictures as p LEFT JOIN albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [94] => SELECT count(*) FROM comments as c LEFT JOIN pictures as p ON c.pid=p.pid LEFT JOIN albums as a ON a.aid=p.aid WHERE 1 (0s)
    [95] => SELECT count(*) FROM categories WHERE 1 (0s)
    [96] => SELECT sum(hits) FROM pictures as p LEFT JOIN albums as a ON p.aid=a.aid WHERE 1 (0.079s)
    [97] => SELECT COUNT(*) FROM pictures WHERE approved = 'NO' (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 5.0.27-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /home/vshosts/hosts/u3100/eva-longoria.net.ru/www | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /home/vshosts/hosts/u3100/eva-longoria.net.ru/www | no value
sql.safe_mode | Off | Off
disable_functions | shell_exec, proc_terminate, proc_open, proc_nice, proc_getstatus, proc_close, passthru, escapeshellcmd, escapeshellarg, popen, virtual, show_source, pclose, exec | shell_exec, proc_terminate, proc_open, proc_nice, proc_getstatus, proc_close, passthru, escapeshellcmd, escapeshellarg, popen, virtual, show_source, pclose, exec
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/vshosts/hosts/u3100/eva-longoria.net.ru/:/usr/home/vshosts/hosts/u3100/eva-longoria.net.ru/:/virtual/vshosts/hosts/u3100/eva-longoria.net.ru/ | .:/tmp
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 10 | 60
max_input_time | 60 | 60
upload_max_filesize | 10240000 | 10M
post_max_size | 10M | 8M
==========================
Page generated in 0.984 seconds - 98 queries in 0.151 seconds - Album set : ; Meta set: ;


My gallery now not working and i can't add pictures. What is what and how i can correct it?

François Keller

A search into the board  would lead to the solution:
use a tool like phpmyadmin to repair the table
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog