

If the two fields (Field name and the Foreign Field name) are using incompatible field type.These errors are related to MySQL itself.

There are some possible cases that might cause failure on creating Foreign Keys on MySQL database.

If you receive MySQL Error likes 1005: Can't create table '.\mydb\#sql-44c_1c.frm'(errno: 150), it is caused by failure on creating Foreign Keys. Applications such as ZoneAlarm and the Windows XP personal firewall may need to be configured to allow external access to a MySQL server.Why I cannot successfully create the foreign keys?Īpply Navicat Product: Navicat for MySQL, Navicat for PostgreSQL Check to make sure that there is no firewall blocking access to MySQL.If it was, you will not be able to connect to it using TCP/IP. Make sure that your mysqld server was not started with the -skip-networking option.Verify the TCP/IP port number that the server is configured to listen to (it is the value of the port variable.)

