Hello Helix,
Thank you so much for the Firebug info. One of the sites that I’m having problem initializing the database has the following SQL error:
<h1>CDbException</h1>
<p>CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1005 Can’t create table ‘fireflys_wordpressdb.ffsd_osefirewall_acl’ (errno: 121). The SQL statement executed was:
CREATE TABLE IF NOT EXISTS ffsd_osefirewall_acl
(
id
INT(11) NOT NULL AUTO_INCREMENT ,
name
VARCHAR(300) NOT NULL ,
status
TINYINT(1) NOT NULL ,
datetime
DATETIME NOT NULL ,
score
TINYINT(3) NOT NULL ,
country_code
CHAR(2) NULL DEFAULT NULL ,
host
VARCHAR(300) NULL DEFAULT NULL ,
notified
TINYINT(1) NULL DEFAULT NULL ,
referers_id
INT(11) NOT NULL ,
pages_id
INT(11) NOT NULL ,
visits
INT(11) NOT NULL ,
PRIMARY KEY (id
) ,
INDEX idx1_oseacl
(referers_id
ASC) ,
INDEX idx2_oseacl
(pages_id
ASC) ,
CONSTRAINT fk1_oseacl
FOREIGN KEY (referers_id
)
REFERENCES ffsd_osefirewall_referers
(id
)
ON UPDATE CASCADE,
CONSTRAINT fk2_oseacl
FOREIGN KEY (pages_id
)
REFERENCES ffsd_osefirewall_pages
(id
)
ON UPDATE CASCADE)
ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8 (/home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/db/CDbCommand.php:541)</p>
#0 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/db/CDbCommand.php(376): CDbCommand->queryInternal('', 0, Array)
#1 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/oseframework/db/oseDB2.php(58): CDbCommand->query()
#2 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/oseframework/installer/wordpress.php(43): oseDB2->query()
#3 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/protected/models/DashboardModel.php(159): oseInstaller->createTables('/home/fireflys/...')
#4 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/protected/models/DashboardModel.php(56): DashboardModel->createTables()
#5 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/protected/controllers/DashboardController.php(34): DashboardModel->actionCreateTables()
#6 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/web/actions/CInlineAction.php(49): DashboardController->actionCreateTables()
#7 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#8 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#9 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#10 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/web/CWebApplication.php(282): CController->run('createTables')
#11 /home/fireflys/public_html/dealers/wp-content/plugins/ose-firewall/framework/oseframework/ajax/oseAjax.php(28): CWebApplication->runController('dashboard/creat...')
#12 [internal function]: oseAjax::runAction('')
#13 /home/fireflys/public_html/dealers/wp-includes/plugin.php(406): call_user_func_array('oseAjax::runAct...', Array)
#14 /home/fireflys/public_html/dealers/wp-admin/admin-ajax.php(72): do_action('wp_ajax_createT...')
#15 {main}
There are 2 WordPress installs using the same database, though each has their own set of tables (with different table prefix). Would that be the reason (2 WP installs using the same database) I’m encountering the sQL error? I had no problem initializing OSE Firewall database/tables on the 1st WP install.
My other question is:
Is there a way to force database initialization again, other than deleting the existing OSE Firewall tables?
Thanks,
itpixie