It's not "general" problem. You procedure contains table references without database prefix. Earlier versions of MySQL server do not check procedure syntax at creation time, but latter versions do check it.
The problem will disappear if you specify full object names within procedure.