Can I use MySQL Workbench to create MariaDB?

51,504

Solution 1

From my experience -- Sure, you can use MySQL Workbench with MariaDB. However, I have tried basic functionalities only, like queries, schema design etc. Not sure about compatibility of advanced features.

Solution 2

So my experiences are, yes you can use MySQL Workbench for MariaDB database designs.

However I needed to change the "Default Target MySQL Version" to 5.7.

This can be done by going to: Edit->Preferences in the menu. And finally to Modeling->MySQL.

Since the latest MySQL version, v8.x, the SQL statements are not compatible with MariaDB statements (like creating an index). MariabDB creating an index on a table:

INDEX `fk_rsg_sub_level_rsg_top_level1_idx` (`rgs_top_level_id` ASC)

vs

MySQL:

INDEX `fk_rsg_sub_level_rsg_top_level1_idx` (`rgs_top_level_id` ASC) VISIBLE

MariaDB can't handle this VISIBLE keyword in this example. Using an old MySQL Version, MySQL Workbench will forward engineer a compatible MariaDB SQL file.

Currently (Oct 2019) the generated SQL_MODE output is still compatible with MariaDB. Just like InnoDB, which is also preferred when using MariaDB in most cases.

Solution 3

Just to list a few other options:

Share:
51,504
TheOpti
Author by

TheOpti

CS student at Warsaw University of Technology. Interested in Computer Networks, Java, Web Development.

Updated on July 05, 2022

Comments

  • TheOpti
    TheOpti almost 2 years

    I am totally new to databases. I would like to create a database; I am going to make a small project which is going to use DB. I am going to use Maria DB as it is totally free for commercial use.

    The question is: Can I use MySQL workbench program to create a database and then transform/change it to MariaDB?

  • RobinJ
    RobinJ over 9 years
    Creating foreign keys and some other stuff seems to crash MySQL workbench most of the time. So you might want to look into something else (PHPMyAdmin for example).
  • Martijn Tonies
    Martijn Tonies about 9 years
    And Database Workbench has official MariaDB support now.
  • Elliptical view
    Elliptical view over 7 years
    HeidiSQL and SQLyog are only available for windows and Heidi SQL is said to be able to run with Wine on Linux but I haven't tested it yet.
  • Jonathan
    Jonathan about 7 years
    This site has great list of alternatives alternativeto.net/software/mysql-workbench
  • Admin
    Admin almost 7 years
    It is the same reason I had shifted to [SQLyog] (webyog.com/product/sqlyog) for bigger deployments.
  • Brayn
    Brayn almost 4 years
    Helpful, thank you. I was having trouble forward engineering my MySQL Workbench model to a MariaDB db in XAMPP. Lowering the target mysql version solved the syntax errors during the forward engineering
  • DevWL
    DevWL almost 3 years
    Heidi Sql do not provide database visualization like MySQL workbench. However its fine for running query - very handy.
  • cazort
    cazort over 2 years
    You could try doing an SSH tunnel as a workaround for the crashing problem. That way the client thinks it's connecting to a local database. However, I'm wary of using this tool, as I've run into numerous problems trying to use MySQL Workbench with MariaDB 10.3. For instance, I had a column in a table that had actually had default value of NULL, but it was showing in MySQL Workbench as the empty string. Stuff like that can both introduce bugs, and make debugging difficult.