After a period of inactivity I was hacking back on a Drupal project, I had taken a mysql dump from a production platform and imported into my local dev setup, just to have some realistic data.
All of a sudden some forms started failing with the following error:
user warning: There is no 'user'@'nonlocalhost registered query:
insert into blah (stuff,morestuff) values (x,y) in
/var/vhost/drupal-tree/includes/database.mysql.inc on line
172.
My Drupal data connection was correct and working for selects etc.. only a limited set of inserts failed.
After some debugging I realised that the error was not Drupal related, running the same query on my MySQL console gave the same error.
ERROR 1449 (HY000): There is no 'user'@'nonlocalhost'
registered
The error came from a trigger on the table I was inserting data into that had been created on the …
[Read more]