Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: Johnnymushio - helmikuu 23, 2011, 04:11:50 IP

Otsikko: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 23, 2011, 04:11:50 IP
i deleted the table since it was corrupted for some reason.

when i create the table log_activity, what values do i put in it?

right now i get this error when upgrading

This query:

    UPDATE MBlog_activity
    SET date = '0001-01-01'
    WHERE date = '0000-00-00';

Caused the error:

    Table 'MBlog_activity' doesn't exist
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: JimM - helmikuu 23, 2011, 08:29:03 IP
What version of SMF are you trying to upgrade from and to?
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 23, 2011, 08:42:19 IP
im upgrading to the newest one, from the second newest one. not 2.0
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: JimM - helmikuu 23, 2011, 10:53:10 IP
Lainaus käyttäjältä: JimM - helmikuu 23, 2011, 08:29:03 IP
What version of SMF are you trying to upgrade from and to?
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: SlammedDime - helmikuu 23, 2011, 10:58:19 IP
'newest' isn't a version... be specific about version numbers.
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 24, 2011, 08:49:57 AP
version number doesnt matter, given my database table problem.

and seriously? by newest i mean the newest version that is out.

"newest isn't a version" thanks for that, ill write that down
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: busterone - helmikuu 24, 2011, 09:21:49 AP
You must not seriously want any help with answers like that.
There are two "newest versions" and the db is different between them in many respects.
1.1.13, or 2.0 RC5 are both newest versions.
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Quexinos - helmikuu 24, 2011, 09:34:22 AP
Well he said not 2.0 so I'm assuming he means 1.1.13 but yeah, no need to be rude about it *goes back to lurking*
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: SlammedDime - helmikuu 24, 2011, 10:49:31 AP
Lainaus käyttäjältä: Johnnymushio - helmikuu 24, 2011, 08:49:57 AP
version number doesnt matter, given my database table problem.

and seriously? by newest i mean the newest version that is out.

"newest isn't a version" thanks for that, ill write that down
Version number does make a difference, as we'll have to go into the install package for your version, look at the SQL file, find the Schema for that table, and copy it here for you (or you could just do this since you seem to know what you're talking about)
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 24, 2011, 11:10:10 AP
i said the newest version, and
i already said its not 2.0, so that leaves what?

one point one point thirteen

for example,

if you have three things, a b and c.
the answer is not a or b.
what is the answer?
(it's c)

and how would i go about copying the database table when i dont have it? (hence, why i posted here)
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: SlammedDime - helmikuu 24, 2011, 11:28:52 AP
Thanks for that lesson in deduction, I'll be sure to pass that along to my college professors who forgot to teach me that...

Here is your SQL:
#
# Table structure for table `log_activity`
#

CREATE TABLE MBlog_activity (
  date date NOT NULL default '0001-01-01',
  hits mediumint(8) unsigned NOT NULL default '0',
  topics smallint(5) unsigned NOT NULL default '0',
  posts smallint(5) unsigned NOT NULL default '0',
  registers smallint(5) unsigned NOT NULL default '0',
  mostOn smallint(5) unsigned NOT NULL default '0',
  PRIMARY KEY (date),
  KEY hits (hits),
  KEY mostOn (mostOn)
) ENGINE=MyISAM;


Since you taught me something, let me teach you something...
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 24, 2011, 11:51:36 AP
thanks, all is well now.

thanks 4 yor leson larning is fun

the bullets made is especially easy to follow
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: JimM - helmikuu 24, 2011, 09:45:58 IP
If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left. :)
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 24, 2011, 11:31:49 IP
i need a bulleted list explaining how to do that. please.
Otsikko: Re: in mysql database, i deleted log_activity, now forum won't upgrade
Kirjoitti: Johnnymushio - helmikuu 25, 2011, 06:19:13 IP
i wanted to do it...