leostro Posted September 12, 2020 Share Posted September 12, 2020 (edited) Hi all, I have a prestashop instance hosted on OVH. The plan is cheap and the database is little and after a while the db is full. I launch that query to finds out heaviest table on mysql: SELECT table_schema as `Database`, table_name AS `Table`, round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC; here the result of the query mod140_guest 336.42 mod140_connections 334.47 mod140_connections_source 13.53 mod140_cart 0.84 ... I do not know so well Prestashop database, I google for that tables on Google but I do not find so much infos... I would like to delete some data from database to free up space and keep the actual plan Can someone help me? Edited September 12, 2020 by leostro (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted September 12, 2020 Share Posted September 12, 2020 You can empty guest, connections and connections_source. They are not very useful statistics databases. I regularly empty them for rows older than a few months. Link to comment Share on other sites More sharing options...
leostro Posted September 15, 2020 Author Share Posted September 15, 2020 Thanks @musicmaster I just truncate these tables and it works, no problem on the website and the database is not READONLY anymore! Thanks for the confirmation, I was a little bit scared of doing a mess. Have a nice day, Leo Link to comment Share on other sites More sharing options...
leostro Posted September 15, 2020 Author Share Posted September 15, 2020 Hi @BenKilr, the same happened to me, I am using OVH and when the database is full they switch them in a readonly state --> the shopping carts stop working 😕 Truncating that table free a lot of spaces and now everything is back to normality. Thanks for the interest 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