 | [Solved] Database MODS |  |
Posted: 09/02/2007 3:00 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 11:46 PM
Location: Somewhere in Maryland
|

|
|
|
|
 |
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 |
|
|
 | Re: Database MODS |  |
Posted: 09/02/2007 3:20 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Database MODS |  |
Posted: 09/02/2007 3:32 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 11:46 PM
Location: Somewhere in Maryland
|

|
|
|
|
 |
| 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 |
|
|
 | Re: Database MODS |  |
Posted: 09/02/2007 3:35 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, or you can upload the mysql_install.php file to your forum root and run it from your browser...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Database MODS |  |
Posted: 09/02/2007 3:42 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 11:46 PM
Location: Somewhere in Maryland
|

|
|
|
|
 |
| 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 |
|
|
 | Re: Database MODS |  |
Posted: 09/02/2007 5:06 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Database MODS |  |
Posted: 09/02/2007 5:21 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 11:46 PM
Location: Somewhere in Maryland
|

|
|
|
|
 |
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 |
|
|
 | Re: Database MODS |  |
Posted: 09/02/2007 5:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Database MODS |  |
Posted: 09/02/2007 6:19 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 11:46 PM
Location: Somewhere in Maryland
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Database MODS |  |
Posted: 09/03/2007 3:25 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:46 AM
Location: St Pete, FL
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|