Jump to content

/ps_connections' is marked as crashed and last (automatic?) repair failed


SB Lite

Recommended Posts

Hi

 

Trying to open the list of customers and getting the following error:

 

'/ps_connections' is marked as crashed and last (automatic?) repair failed'

 

Ive gone onto myPHPadmin and tried opening the /ps_connections table and get the error

 

'#144 - Table is marked as crashed and last (Automatic?) repair failed.

 

 

Any advice on resolving this?

 

Thanks

Scott

Link to comment
Share on other sites

This table is only for statistics purposes. If it crashed, perhaps it is too big and I would not restore. In this case it is better you empty (truncate) this table. You can easily do this with phpmyAdmin.

 

Tutorial (it's for WordPress database, but it doeswn't mater, you can follow): https://codex.wordpress.org/Emptying_a_Database_Table

 

or YT

 

Link to comment
Share on other sites

you should be able to find the SQL for the table definition in following folder of your version prestashop package

 

 

/install/data/db_structure.sql

 

you will be able to find the tables your want from that file. run the sql on your store database via DB tools such as PhpMyAdmin.

for example, below is one of those tables. You need delete existing table first then run this.

 

Also make sure replace PREFIX_ with correct one that used for your store.

 

CREATE TABLE `PREFIX_connections` (
  `id_connections` int(10) unsigned NOT NULL auto_increment,
  `id_shop_group` INT(11) UNSIGNED NOT NULL DEFAULT '1',
  `id_shop` INT(11) UNSIGNED NOT NULL DEFAULT '1',
  `id_guest` int(10) unsigned NOT NULL,
  `id_page` int(10) unsigned NOT NULL,
  `ip_address` BIGINT NULL DEFAULT NULL,
  `date_add` datetime NOT NULL,
  `http_referer` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id_connections`),
  KEY `id_guest` (`id_guest`),
  KEY `date_add` (`date_add`),
  KEY `id_page` (`id_page`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8 COLLATION;


Link to comment
Share on other sites

  • 3 years later...

I ended up in this topic coz i had the same issue with "connection" table, I applied this below fix which worked like a charm so far. 

I founded this on the following website: https://www.thoughtco.com/repairing-mysql-database-with-phpmyadmin-2693966
 

phpMyAdmin Repair Steps

1 - Log in to your web host.

2 - Click the phpMyAdmin icon. 

3 - Choose the affected database. 

4 - In the main panel, you should see a list of your database tables. Click Check All to select all of them.
     This step i did differently, i only selected "connection" table and it did the trick. 

5 - Choose Repair Table from the drop-down menu at the bottom of the screen.

6- When the page refreshes, you should see a summary of any tables that were repaired.

This should fix your database and let you access it again. Now that it is fixed, it's a good idea to make that database backup.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...