Well, one does not simply tells MySQL how much memory it should use.
The maximum memory usage comes from a lot of different settings, mostly buffer sizes but it appears that documentations don’t clearly state how to find or set this value.
You’ll have to read their post about memory usage, which I greatly recommend anyway.