in reply to Trying to update a mysql table

Well, I'm accessing the database as root user. So that should have all priveledges, shouldn't it?

Replies are listed 'Best First'.
Re: Re: Trying to update a mysql table
by Itatsumaki (Friar) on May 22, 2003 at 23:50 UTC

    Three points:

    1. Try not to use place-holders for updates. In my experience, the biggest performance benefits for placeholders are in updates and inserts, not in selects. Not only that, I can't count the number of times I've screwed up quoting on different DBs. That doesn't sound like your problem here, but nonetheless you'd be well-served if you started getting into the habit of using place-holders everywhere.
    2. Just because you are logged into a machine as root doesn't mean you are logged into the database as root! You need to know what your DB login is, and what privileges you have on the db, not just on the OS.
    3. It's hard to figure out what your problem is without a little more info. If you can, please give us the OS, MySQL version, DBI version, DBD version, and the script (remove passwords certainly, and feel free to change table-names to something like table1.field1). Finally, we'd really need to see your SQL to say much more. If possible, post the DBI trace log and that will help us a ton.

    -Tats