I noticed that my database server supports the Memory database engine. I want to make a database I have already made running InnoDB run completely in memory for performance.
How do I do that? I explored PHPMyAdmin, and I can’t find a “change engine” functionality.
Assuming you understand the consequences of using the MEMORY engine as mentioned in comments, and here, as well as some others you’ll find by searching about (no transaction safety, locking issues, etc) – you can proceed as follows:
MEMORY tables are stored differently than InnoDB, so you’ll need to use an export/import strategy. First dump each table separately to a file using
SELECT * FROM tablename INTO OUTFILE 'table_filename'. Create the MEMORY database and recreate the tables you’ll be using with this syntax:CREATE TABLE tablename (...) ENGINE = MEMORY;. You can then import your data usingLOAD DATA INFILE 'table_filename' INTO TABLE tablenamefor each table.