I'm trying to learn the explain statement in MySQL but ran into a wall.
For my experiment, I created two tables (each having 10 rows) and ran explain over a simple join. Naturally, no indexes were used and 10*10 = 100 rows were scanned (I've added the output in images because the very long output of EXPLAIN was being wrapped on itself. The code is also in this pastebin):

I then added primary keys and indexes and reissued the explain command:

But as you can see, the users table is still being fully scanned by MySQL, as if there was no primary key. What is going wrong?
userstable was not scanned it would not have joined all the scanned users toaccounts, only one where and one ref clause limiting the accounts. - use more records