Jump to content

IPS 4.5.4: InnoDB tables are using Compact row format...


PoC2

Recommended Posts

I have done the


SELECT table_name, table_schema, ROW_FORMAT
FROM information_schema.tables
WHERE engine = 'InnoDB' AND TABLE_SCHEMA = '<YOUR DATABASE NAME>' AND ROW_FORMAT = 'COMPACT'

And all 247 rows are "COMPACT" can anybody provide a SQL command to change all of them as I don't want to have to do every single row manually

Also should the forum be taken offline when doing this? Also I have no ssh access

Thanks

Edited by Genestoy
Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...
On 10/28/2020 at 3:36 AM, rionerotnt said:

I use this query SQL on each InnoDB table

 


SET storage_engine=MYISAM;
ALTER TABLE table_name ENGINE = MyISAM;

This seems to have been missed in the back and forth. You should really not use MyISAM. That is not an appropriate solution for this recommendation. 

Instead, as @bfarber pointed out, ignore the recommendation or change to dynamic row format with InnoDB.

https://mariadb.com/kb/en/choosing-the-right-storage-engine/

Link to comment
Share on other sites

I'm not having any joy applying the DYNAMIC row conversion on my seven COMPACT tables. For example, when I execute this:

ALTER TABLE ibf_core_follow_count_cache ROW_FORMAT=DYNAMIC;

 

It reports my InnoDB file format is wrong.  I get two warnings (and the row format remains in the compact mode):

Warning: #1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
Warning: #1478 InnoDB: assuming ROW_FORMAT=COMPACT.

So then I added these two statements to the my.cnf file on my paid hosting site:

 innodb_file_format=BARRACUDA
 innodb_large_prefix=1

Repeated the ALTER TABLE statement and still no joy.

So I'm seeking advice on how to do the COMPACT to DYNAMIC row conversion on my tables.

- Thomas

Edited by Thomas_B
Link to comment
Share on other sites

I am having a issue maybe someone can help with--

I log into my cpanel a few days ago and discover I am running MariaDB 10.1

I call my host asking when they will upgrade it to MariaDB 10.3

They tell me not soon but I can move to one of their newer servers that already has MariaDB 10.3 for free

I authorize the migration to the new server

It is completed and DNS propagated

I check in my cpanel and all rows have now been set to DYNAMIC (with innodb same as I was running on 10.1 and Database client version: libmysql - 5.6.43 )

BUT my ACP still says I am running COMPACT and running MariaDB 10.1

What gives?

Thanks

 

UPDATE: All of a sudden my ACP is now showing MariaDB 10.3 and all rows are DYNAMIC and the notification is GONE!!!

Edited by Genestoy
Link to comment
Share on other sites

19 hours ago, Nathan Explosion said:

What version of mySQL/MariaDB?

mySQL 5.6.

It's a hosted server. Tech support says that mySQL will be upgraded to 5.7 in a few weeks. But they cautioned that what I want to do is probably not going to work; The account is on a shared server and changing to the Barracuda file format would probably require a global setting that would affect all shared users.

But others have commented that they were told a similar story by their host. And yet they were still able to change to DYNAMIC row format. So I need advice on how to make this magic happen.

- Thomas

Edited by Thomas_B
Link to comment
Share on other sites

  • 5 weeks later...

*SOLVED*

Yesterday my host upgraded to mySQL 5.7, which included changing to the Barracuda file format (previously Antelope). So now the SQL commands were successfully executed and my "compact" database tables have been converted to "dynamic."

So I'd like to report a happy ending to my adventure. A big Thank You to the forum members for the advice and providing the SQL commands to do it.

- Thomas

Link to comment
Share on other sites

  • 1 month later...

I followed all the steps reported here and I was able to change the tables to InnoDB and Dynamic format. Unique difference is that I am still running MySQL version 5.6.

Now I have an issue where the website sometimes is super fast and sometimes it takes really long to load pages, forums, etc. Sometimes it sais the website is not reacheable and, after 3-4 page refresh, it works.

Any idea to solve it?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...