Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4098534
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:18:52+00:00 2026-05-20T20:18:52+00:00

Using MySQL Workbench 5.2.33 with MySQL 5.1.41 I have created an EER diagram. But

  • 0

Using MySQL Workbench 5.2.33 with MySQL 5.1.41

I have created an EER diagram. But when I try to forward engineer it from MySQL Workbench, I get the following error:

Executing SQL script in server
ERROR: Error 1005: Can't create table 'test_db.test_table' (errno: 150)

-- ------------------------------------------------------- 
Table `test_db`.`test_table`
-- -------------------------------------------------------
CREATE  TABLE IF NOT EXISTS `test_db`.`test_table` (
  `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT ,
  `figure` TINYINT UNSIGNED NULL ,
  `users_id` BIGINT UNSIGNED NOT NULL ,
  `inactive` TINYINT(1)  NULL ,
  `type_id` TINYINT NOT NULL ,
  PRIMARY KEY (`id`, `users_id`, `type_id`) ,
  UNIQUE INDEX `id_UNIQUE` (`id` ASC) ,
  INDEX `fk_figure_users1` (`users_id` ASC) ,
  INDEX `fk_figure_type1` (`figure_type_id` ASC) ,
  CONSTRAINT `fk_figure_users1`
    FOREIGN KEY (`users_id` )
    REFERENCES `test_db`.`users` (`id` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_figure_type1`
    FOREIGN KEY (`type_id` )
    REFERENCES `test_db`.`type` (`id` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB

SQL script execution finished: statements: 9 succeeded, 1 failed

Why am I getting this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:18:53+00:00Added an answer on May 20, 2026 at 8:18 pm

    http://forums.mysql.com/read.php?22,19755,298807#msg-298807

    You are not alone….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created some tables using MySQL Workbench, and then did forward ‘forward engineer’ to
I have created a MySQL database using MySQL Workbench. It has about 20 tables.
MySQL Query works fine using MySQL workbench but produces an error when I am
I have the following error when trying to import .sql file into MYSQL from
I have created a project in visual studio with MYSQL using MYSQL Workbench. It
I'm modeling my db shema using MySQL Workbench CE EER modeler and now I'm
I am using MySQL Workbench to create a database. I have a table called
I'm using MySQL Workbench to model my database. In it, I have the option
So, I am modeling a database using MySQL Workbench. I have a table called
I'm using MySql Workbench and WAMP Server. I have a database on the server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.