On 4/24/2012 10:11 PM, joea wrote: >>>> On 4/24/2012 at 2:49 PM, Bowie Bailey <[email protected]> wrote: >> >> No, Bayes will only use the db for the current user. You will need to >> either change your script to sa-learn as the proper user, or switch to a >> global db. > I'm not finding a way to set global. Not using mySQL. Maybe it's a bit late > to be doing this.
If you are currently using mySQL, you should be able to simply modify your query to get the right database. I don't use mySQL myself, so I can't give you specifics. If you are not using mySQL, there is no reason to switch at this point. If you are doing everything else as root, then you just need to find root's bayes db and set the permissions on the files so that "script-user" can access them. Then you run sa-learn with the proper parameters to point it to root's db (check the man page for sa-learn). -- Bowie
