The following may be useful:
drop table if exists users; create table users ( user_id int unsigned not null auto_increment primary key, username varbinary(32) not null, unique key users_username_idx(username) )engine=innodb; insert into users (username) values ('f00'),('foo'),('bar'),('bAr'),('bish'),('bash'),('bosh'); drop table if exists picture; create table picture ( picture_id int unsigned not null auto_increment primary key, user_id int unsigned not null,
source share