MySQL undefined “user”
I saw this odd exception today:
Caused by: java.sql.SQLException: There is no 'anotherdeveloper'@'localhost' registered
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:116
This happens after my server has started up, I’ve logged in through the web app, browsed around and then try to insert a message. It’s a little puzzling at first, how can the database user just change midstream. It turns out that it’s caused by a trigger trying to fire but the DEFINER for the trigger is set to “otherdeveloper@localhost” which is not a valid account on my local database. Would be nice if mysql import warned you about this or perhaps change it to the user the schema is being imported as if the DEFINER does not exist.
SSH throughput
I found this very good article that explains what I observed and commented on in my gigabit upgrade post, SSH is not CPU and disk bound on my gigabit network.
Eclipse Perm Gen errors
got you down? According to this article, if you’re using the Sun VM, add the following to your eclipse.ini:
-XX:MaxPermSize=[memory size]
I’m trying this right now on my Macbook Pro using the Apple supplied VM (build 1.5.0_07-154), so far so good. I hope it’s not a leaky VM. And while we’re on this topic, it would be really nice if Apple could stay a little bit more up to date with VM releases. There’s been some crappy java.util.Date bugs that’s apparently only been fixed in 1.5.0_10 which has been out for ages.
-
Recent
- Kernel panics on Leopard
- Resizing off screen windows in OS X (Leopard)
- H264 quality differences in players
- ImageMagick on Leopard
- Automount on Leopard
- Monitoring HDD temperature
- Eclipse Europa and Leopard problems
- Macbook Pro wireless woes
- Budget reconciliation … UNIX style
- Load testing AJAX with JMeter
- MySQL undefined “user”
- SSH throughput
-
Links
-
Archives
- June 2008 (2)
- March 2008 (1)
- February 2008 (1)
- November 2007 (3)
- March 2007 (3)
- February 2007 (3)
- January 2007 (3)
- December 2006 (3)
- November 2006 (3)
-
Categories
-
RSS
Entries RSS
Comments RSS