Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Database MODS
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Database MODS
PostPosted: 09/02/2007 3:00 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 4:08 PM
Location: Somewhere in Maryland
marylndC.gif
Ok, this part is quick and painless. If I am going to use phpMyAdmin to back up my db, do I need Complete Database Backup v1.0.1 any longer?

Onwards to EMs error on Optimize Database MOD:

Code:
 Critical Error

FIND FAILED: In file [admin/admin_db_utilities.php] could not find:

if( (empty($file_uploads) || $file_uploads != 0) && (strtolower($file_uploads) != 'off') && (@phpversion() != '4.0.4pl1') )
{
$module['General']['Restore_DB'] = $filename . "?perform=restore";
}

MOD script line #140


Last edited by 2LadyDi on 09/02/2007 6:19 PM; edited 1 time in total
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: Database MODS
PostPosted: 09/02/2007 3:20 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:08 PM
Location: St Pete, FL
peace.gif
Ok, try this:

OPEN
Optimize_Database/install.txt

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#

   if( (empty($file_uploads) || $file_uploads != 0) && (strtolower($file_uploads) != 'off') && (@phpversion() != '4.0.4pl1') )
   {
      $module['General']['Restore_DB'] = $filename . "?perform=restore";
   }

#
#-----[ AFTER, ADD ]------------------------------------------
#

   $module['General']['Optimize_DB'] = $filename . "?perform=optimize";

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
$module['Database_admin']['Restore_DB']
#
#-----[ FIND ]------------------------------------------
#
return;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
   $module['Database_admin']['Optimize_DB'] = $filename . "?perform=optimize";

Save, upload, and try again using EM...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Database MODS
PostPosted: 09/02/2007 3:32 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 4:08 PM
Location: Somewhere in Maryland
marylndC.gif
Code:
SQL PROCESSING ERROR:
No SQL alterations will be performed. However, you may skip SQL processing, continue installing the MOD, and deal with the SQL manually

The following error occured:

Error:
Unsupported data type "ENUM(___0___,___1___)", statement: 1, table: "phpbb_optimize_db"

SQL:
CREATE TABLE phpbb_optimize_db(cron_enable enum('0','1') NOT NULL default '0',cron_every int(7) NOT NULL default '86400',cron_next int(11) NOT NULL default '0',cron_count int(5) NOT NULL default '0',cron_lock enum('0','1') NOT NULL default '0',show_begin_for varchar(150) NOT NULL default '',show_not_optimized enum('0','1') NOT NULL default '0') INSERT INTO phpbb_optimize_db VALUES('0',86400,0,0,'1','','0')


I should manually SQL this last part NR, yes??
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: Database MODS
PostPosted: 09/02/2007 3:35 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:08 PM
Location: St Pete, FL
peace.gif
Yes, or you can upload the mysql_install.php file to your forum root and run it from your browser...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Database MODS
PostPosted: 09/02/2007 3:42 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 4:08 PM
Location: Somewhere in Maryland
marylndC.gif
Ok, then once that is done remove both the mysql_install.php and the folder witin admin/mods, right? And, when I did the mysql_install.php - it had "have a nice day" at the end. AHAHAHA, cute. Went back to install the MOD, still showed the SQL error?!?! I installed it anyhow but... where do I see it?!?!
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: Database MODS
PostPosted: 09/02/2007 5:06 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:08 PM
Location: St Pete, FL
peace.gif
EM will continue to show the SQL error because the offending SQL query is still in the MOD script.  But since you know that the database has been successfully updated, you can always safely ignore the SQL Processing error, as you did...

The Optimize Database option is in your ACP Database Admin section:



It is currently set to launch once per day.  I have it set to launch hourly here in RCF.  That may cause a problem with some database servers if they limit the number of queries to the database...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Database MODS
PostPosted: 09/02/2007 5:21 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 4:08 PM
Location: Somewhere in Maryland
marylndC.gif
Ooooooh, I see it now. I don't have to do mine that often, I can go weekly and it would be fine. Posting has dropped off loads.

BUT.... what tables should I check off OR leave it at the defaults as seen now??
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: Database MODS
PostPosted: 09/02/2007 5:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:08 PM
Location: St Pete, FL
peace.gif
The tables that are checked are not optimal.  The next time it launches, it will optiimize all of those tables.  You don't have to do anything.  It's all automatic...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Database MODS
PostPosted: 09/02/2007 6:19 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 4:08 PM
Location: Somewhere in Maryland
marylndC.gif
Grand!!
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: [Solved] Database MODS
PostPosted: 09/03/2007 3:25 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:08 PM
Location: St Pete, FL
peace.gif
banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0868s (PHP: 60% - SQL: 40%) - SQL queries: 58 - GZIP disabled - Debug on