iltecnobadante Posted October 3, 2018 Share Posted October 3, 2018 Hi, we have a site www.scontolo.net developed on prestashop 1.6.1.20. From 26 September we have a big problem on a this qery: "SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps_shop_url su LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'www.scontolo.net' OR su.domain_ssl = 'www.scontolo.net') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC" this query lock tables and db crashed. Can you help me??? Link to comment Share on other sites More sharing options...
seb776 Posted October 3, 2018 Share Posted October 3, 2018 hello, try to repair the tables : repair table ps_shop_url; repair table ps_shop; in a mysql shell (or phpmyadmin) Link to comment Share on other sites More sharing options...
iltecnobadante Posted October 3, 2018 Author Share Posted October 3, 2018 ok, I'm check with repair, thanks Link to comment Share on other sites More sharing options...
iltecnobadante Posted October 3, 2018 Author Share Posted October 3, 2018 we have this result: Risultato SQL Host: localhostDatabase: scontolo_ps16Creato il: Ott 03, 2018 alle 14:20Generato da: phpMyAdmin 4.4.15.10 / MySQL 10.2.12-MariaDBQuery SQL: repair table ps_shop_url;Righe: 1 Table Op Msg_type Msg_text scontolo_ps16.ps_shop_url repair note The storage engine for the table doesn't support repair Link to comment Share on other sites More sharing options...
seb776 Posted October 5, 2018 Share Posted October 5, 2018 So it does not need to be repaired. - https://duckduckgo.com/?q=The+storage+engine+for+the+table+doesn't+support+repair+&t=ffab&ia=qa Maybe the ORDER part of the query should be rewritten using a select field then, order on that field... Maybe a mysql - innodb bug ... Maybe you can drop this table then recreate them. Then recreat the entries ... Link to comment Share on other sites More sharing options...
iltecnobadante Posted October 24, 2018 Author Share Posted October 24, 2018 HI,unfortunately db go down on this query...it's terrible. It's possible to lock tables and not delivery other request? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now