What could cause "PROCEDURE schema.identity does not exist" using MySQL and Hibernate? <p>Using Java, Hibernate, and MySQL I persist instances of a class like this using the Hibernate support from Spring.</p> <pre><code>@Entity public class MyEntity implements Serializable { private Long id; @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; } public void setId(Long id) { this.id = id; } } </code></pre> <p>This generally works fine. But now and then when trying to persist such an entity, I get this:</p> <pre><code>java.sql.SQLException: PROCEDURE schema.identity does not exist </code></pre> <p>The underlying MySQL error is:</p> <pre><code>SQL Error: 1305, SQLState: 42000 </code></pre> <p>This is a regular MySQL error described in the <a href="http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html#error_er_sp_does_not_exist" rel="nofollow noreferrer">MySQL manual</a>.</p> <p>My problem is that this system worked for months without any problem. Only recently I discovered the error described above. Do you have any ideas what could have caused this problem? What does Hibernate look for and doesn't find?</p> <p>If this question should be on serverfault, feel free to migrate it :)</p>