You also could use the Quick Tag plugin from the official components side that anyway only adds tags to the file - you also can tag information like Album Rating with it.
The official Playback statistics component stores rating by default in its separate database...
$meta(rating) solves the above bug/issue.
The official Playback statistics component stores rating by default in its separate database (together with added/first/last played timestamps)
Since the %rating%-field is commonly used/accepted for rating i wonder why two components available from the from the official components side can cause such a mess!?
Where is this database stored?
That said, that file remembers the values by file name and it's for foobar2000 only. If you want to see the ratings from another application or move the files around, synchronizing statistics with the files as described above is needed.
That's kind of scary, hopefully someone with more knowledge about those two programs will prove me wrong.