News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

aiutoo per piacere Database Error

Started by reddriver, September 30, 2011, 10:25:44 AM

Previous topic - Next topic

reddriver

aiutoo per piacere è urgente è da mattina che ho problemi con il forum mi da sempre errore di database e adesso non riesco neanche a aprire il mio forum mi da questo errore

Table './xxxxxxxx/smf_messages' is marked as crashed and last (automatic?) repair failed
File: /home/xxxx/public_html/Sources/Subs-BoardIndex.php
Line: 72

e andando a veder l'errore trovo questo

59:    

   

   

   

LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . ($user_info['is_guest'] ? '' : '
60:    

   

   

   

LEFT JOIN {db_prefix}log_boards AS lb ON (lb.id_board = b.id_board AND lb.id_member = {int:current_member})' . ($boardIndexOptions['include_categories'] ? '
61:    

   

   

   

LEFT JOIN {db_prefix}collapsed_categories AS cc ON (cc.id_cat = c.id_cat AND cc.id_member = {int:current_member})' : '')) . '
62:    

   

   

   

LEFT JOIN {db_prefix}moderators AS mods ON (mods.id_board = b.id_board)
63:    

   

   

   

LEFT JOIN {db_prefix}members AS mods_mem ON (mods_mem.id_member = mods.id_member)
64:    

   

   

WHERE {query_see_board}' . (empty($boardIndexOptions['countChildPosts']) ? (empty($boardIndexOptions['base_level']) ? '' : '
65:    

   

   

   

AND b.child_level >= {int:child_level}') : '
66:    

   

   

   

AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)),
67:    

   

   

array(
68:    

   

   

   

'current_member' => $user_info['id'],
69:    

   

   

   

'child_level' => $boardIndexOptions['base_level'],
70:    

   

   

   

'blank_string' => '',
71:    

   

   

)
==>72:    

   

);
73:    
74:    

   

// Start with an empty array.
75:    

   

if ($boardIndexOptions['include_categories'])
76:    

   

   

$categories = array();
77:    

   

else
78:    

   

   

$this_category = array();
79:    
80:    

   

// Run through the categories and boards (or only boards)....
81:    

   

while ($row_board = $smcFunc['db_fetch_assoc']($result_boards))
82:    

   

{
83:    

   

   

// Perhaps we are ignoring this board?
84:    

   

   

$ignoreThisBoard = in_array($row_board['id_board'], $user_info['ignoreboards']);
85:    

   

   

$row_board['is_read'] = !empty($row_board['is_read']) || $ignoreThisBoard ? '1' : '0';
86:    
87:    

   

   

if ($boardIndexOptions['include_categories'])
88:    

   

   

{
89:    

   

   

   

// Haven't set this category yet.
90:    

   

   

   

if (empty($categories[$row_board['id_cat']]))
91:    

   

   

   

{
92:    

   

   

   

   

$categories[$row_board['id_cat']] = array(


per favore aiuto

reddriver

come si fa a fare repair + optimize  della database ?
sono ignorante in materia

reddriver

sono ancora io non so ma forse ho risolto il problema ho provato come qua è scritto
siteground.com/tutorials/phpmyadmin/phpmyadmin_optimize_database.htm

ma ho sempre problemi ad apriri alcuni thread nel forum



Database Error
Out of memory (Needed 16777174 bytes)
File: /home/xxxxx/public_html/Sources/Display.php
Line: 751

e questo lo error
738:    

   

   

);
739:    

   

   

$pollinfo = $smcFunc['db_fetch_assoc']($request);
740:    

   

   

$smcFunc['db_free_result']($request);
741:    
742:    

   

   

$request = $smcFunc['db_query']('', '
743:    

   

   

   

SELECT COUNT(DISTINCT id_member) AS total
744:    

   

   

   

FROM {db_prefix}log_polls
745:    

   

   

   

WHERE id_poll = {int:id_poll}
746:    

   

   

   

   

AND id_member != {int:not_guest}',
747:    

   

   

   

array(
748:    

   

   

   

   

'id_poll' => $topicinfo['id_poll'],
749:    

   

   

   

   

'not_guest' => 0,
750:    

   

   

   

)
==>751:    

   

   

);
752:    

   

   

list ($pollinfo['total']) = $smcFunc['db_fetch_row']($request);
753:    

   

   

$smcFunc['db_free_result']($request);
754:    
755:    

   

   

// Total voters needs to include guest voters
756:    

   

   

$pollinfo['total'] += $pollinfo['num_guest_voters'];
757:    
758:    

   

   

// Get all the options, and calculate the total votes.
759:    

   

   

$request = $smcFunc['db_query']('', '
760:    

   

   

   

SELECT pc.id_choice, pc.label, pc.votes, IFNULL(lp.id_choice, -1) AS voted_this
761:    

   

   

   

FROM {db_prefix}poll_choices AS pc
762:    

   

   

   

   

LEFT JOIN {db_prefix}log_polls AS lp ON (lp.id_choice = pc.id_choice AND lp.id_poll = {int:id_poll} AND lp.id_member = {int:current_member} AND lp.id_member != {int:not_guest})
763:    

   

   

   

WHERE pc.id_poll = {int:id_poll}',
764:    

   

   

   

array(
765:    

   

   

   

   

'current_member' => $user_info['id'],
766:    

   

   

   

   

'id_poll' => $topicinfo['id_poll'],
767:    

   

   

   

   

'not_guest' => 0,
768:    

   

   

   

)
769:    

   

   

);
770:    

   

   

$pollOptions = array();
771:    

   

   

$realtotal = 0;




P.S. c'è un modo per per reparare tutti gli errori ?
se faccio come nel link e marco tutto e faccio repair faccio un danno ? :o

emanuele

No, non fai un danno.
Se la tabella non ha problemi non succede niente, se li ha li ripara.

L'errore "out of memory" sembra qualcosa legato all'host, ma per prima cosa sii sicuro che le tabelle siano riparate.
Quindi invece di postare a questo modo gli errori (che sono illeggibili), metti uno screenshot. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

reddriver

grazie Manu gentile come sempre  :)
farò come mi hai detto poi ti farò sapere ma adesso ho un altro problema + serio non riesco a aprire la pagine web del forum mii dice questo

Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

cosa vuol dire ?
è un problema di database cioè mio o di host server?
e poi sono andato a vedere la mia database e ho trovato
The MySQL® server is currently offline.

:o

cosa vuol dire tutto questo ?
scusate la mia ignoranza

emanuele

Vuol dire che è un problema del tuo host...
MySQL (il software che gestisce il database) non è avviato e quindi SMF non può accedervi.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Epitaffio

Probabilmente sei su un servizio shared e ancora probabilmente i tuoi out of memory han fatto crashare il server mysql.

Prova a sentire l'assistenza del tuo servizio.

Advertisement: