Re: Can not add foreign key constraint

2017-04-27 Thread Johan De Meersman
That is quite different, as I suspected :-) Referential keys require an index on the target table that begins with the referenced field, so you'll need to add one on user, as was specified in the create table you originally posted. On 28 April 2017 01:21:39 CEST, David Mehler wrote: >Hello, >

MySQL Connector/J 5.1.42 has been released

2017-04-27 Thread Gipson Pulla
Dear MySQL Users, MySQL Connector/J 5.1.42, a maintenance release of the production 5.1 branch has been released. Connector/J is the Type-IV pure-Java JDBC driver for MySQL. MySQL Connector Java is available in source and binary form from the Connector/J download pages at http://dev.mysql.com/dow

Re: Can not add foreign key constraint

2017-04-27 Thread David Mehler
Hello, Here's the output of the command show create table virtual_users: create table virtual_users; +---+--