Not all version of ndb support foreign key. Wich version are you using?<br><br>On Friday, April 26, 2019, Fernando Ruza Rodriguez <<a href="mailto:fernandor@sescam.jccm.es">fernandor@sescam.jccm.es</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div>
Hi, I'm trying to setup kea 1.6 with MySQL NDB Cluster backend. Has someone experienced with them?<br>
<br>
I have changed the "ENGINE" in all create tables statements with ENGINE=NDBCLUSTER in the script dhcpdb_create.mysql however when I run it I get the following errors, I think, when created the tables keadhcp.dhcp4_pool and keadhcp.dhcp6_pool for the foreign keys they have:<br>
<br>
<tt>...</tt><br>
<br>
<tt>ERROR 1215 (HY000): Cannot add foreign key constraint</tt><br>
<tt>Query OK, 0 rows affected (0,46 sec)</tt><br>
<br>
<tt>Query OK, 0 rows affected (1,50 sec)</tt><br>
<tt>Records: 0  Duplicates: 0  Warnings: 0</tt><br>
<br>
<tt>Query OK, 0 rows affected (1,77 sec)</tt><br>
<tt>Records: 0  Duplicates: 0  Warnings: 0</tt><br>
<br>
<tt>Query OK, 0 rows affected (0,48 sec)</tt><br>
<br>
<tt>ERROR 1146 (42S02): Table 'keadhcp.dhcp4_pool' doesn't exist</tt><br>
<tt>Query OK, 0 rows affected (0,48 sec)</tt><br>
<br>
<tt>...</tt><br>
<br>
<tt>ERROR 1215 (HY000): Cannot add foreign key constraint</tt><br>
<tt>ERROR 1215 (HY000): Cannot add foreign key constraint</tt><br>
<tt>Query OK, 0 rows affected (1,65 sec)</tt><br>
<tt>Records: 0  Duplicates: 0  Warnings: 0</tt><br>
<br>
<tt>Query OK, 0 rows affected (1,36 sec)</tt><br>
<tt>Records: 0  Duplicates: 0  Warnings: 0</tt><br>
<br>
<tt>Query OK, 0 rows affected (0,57 sec)</tt><br>
<br>
<tt>ERROR 1146 (42S02): Table 'keadhcp.dhcp6_pool' doesn't exist</tt><br>
<tt>Query OK, 1 row affected (0,03 sec)</tt><br>
<tt>Rows matched: 1  Changed: 1  Warnings: 0</tt><br>
<br>
<br>
Thanks in advanced for any help.<br>
<br>
Regards, Fernando.<br>
<br>
</div>

</blockquote>