mysql - Magento SQLSTATE[42S01] error -


i've been having problems magento site. crashed, , locked me out entering admin. contacted our host roll our db , nothing has changed. deleted tables errors suggested , cleared local cache , /var/cache/ , still nothing. have hundreds of products in db , don't want flush them out, how can fix this?

error in file: "/home/sppower6/public_html/app/code/core/mage/admin/sql/admin_setup/install-1.6.0.0.php" - sqlstate[42s01]: base table or view exists: 1050 table 'admin_assert' exists, query was: create table admin_assert ( assert_id int unsigned not null auto_increment comment 'assert id' , assert_type varchar(20) null default null comment 'assert type' , assert_data text null comment 'assert data' , primary key (assert_id) ) comment='admin assert table' engine=innodb charset=utf8 collate=utf8_general_ci

trace: 0 /home/sppower6/public_html/app/code/core/mage/core/model/resource/setup.php(645): mage::exception('mage_core', 'error in file: ...')

1 /home/sppower6/public_html/app/code/core/mage/core/model/resource/setup.php(421): mage_core_model_resource_setup->_modifyresourcedb('install', '', '1.6.1.1')

2 /home/sppower6/public_html/app/code/core/mage/core/model/resource/setup.php(327): mage_core_model_resource_setup->_installresourcedb('1.6.1.1')

3 /home/sppower6/public_html/app/code/core/mage/core/model/resource/setup.php(235): mage_core_model_resource_setup->applyupdates()

4 /home/sppower6/public_html/app/code/core/mage/core/model/app.php(428): mage_core_model_resource_setup::applyallupdates()

5 /home/sppower6/public_html/app/code/core/mage/core/model/app.php(354): mage_core_model_app->_initmodules()

6 /home/sppower6/public_html/app/mage.php(684): mage_core_model_app->run(array)

7 /home/sppower6/public_html/index.php(87): mage::run('', 'store')

8 {main}

just delete admin_assert

sqlstate[42s01]: base table or view exists: 1050 table 'admin_assert' exists 

if still happen, can refresh domain yourdomain/index.php until done.

because when index.php check all core_resource version @ db, when it's not same or lower config.xml, run mysql upgrade.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -