Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Setting Default Engine Type For New Tables

forums forums SQLyog Using SQLyog Setting Default Engine Type For New Tables

  • This topic is empty.
Viewing 7 reply threads
  • Author
    Posts
    • #9197
      krisleech
      Member

      how do i set a default engine type for new table?

      currently it defaults to MRG_MyISAM.. which does not allow inserts.

      thanks kris.

    • #19078
      peterlaursen
      Participant

      1) From SQLyog GUI:

      right click the table in Object browser … change table type to .. and choose what you'd like!

      2) SQL

      Execute this:

      ALTER TABLE `dbname`.`tablename` type = ISAM;

      (or whatever type).

      Comment: The merge table type is really not interesting any more with modern OS's and filesystems It was created in order to be able to have very big databases exceeding the file size possible. But with Windows/NTFS or LINUX/EXT3FS there is no need for merge tables.

      You can read about the merge table type in the MySQL documentation.

    • #19079
      Ritesh
      Member

      To set the default engine use this in the my.cnf file: default-table-type=MyISAM

    • #19080
      peterlaursen
      Participant

      I am sorry I missed the point 😡

      You asked for the default table type for a NEW table. Ritesh gave the answer. However, you can altter such settings from “MySQL Administrator” too, if you prefer.

      It is available from http://dev.mysql.com

    • #19081
      krisleech
      Member

      thanks both!

      But… I dont find the my.cnf file in the install folder, i have SQLyog.ini.

      Do i need to make my.cnf or should it already be there.

      I have show hidden files enabled.

      Thanks again, K.

    • #19082
      Ritesh
      Member
    • #19083
      Ritesh
      Member

      Its a MySQL configuration file and has nothing to do with SQLyog.

    • #19084
      krisleech
      Member

      Thanks a lot!

Viewing 7 reply threads
  • You must be logged in to reply to this topic.