Jump to content

Updating Remote MySQL Table


Jove

Recommended Posts

Hi Folks,

 

I've got a very strange MySQL problem: I'm trying to update a table lying on a remote server. Everything works fine, except one single query, something like:

UPDATE db.table SET field='1' WHERE id='2';

There's no MySQL-Error, mysql_query() returns true and mysql_affected_rows() returns 1, but theres no change in the table I'm trying to update. If I run the query in phpMyAdmin (which also lies on the server where the php-script is located) it works and all changes are made. Since I use the same user and password I've got no idea what's wrong with the script or the server configuration.

Does anyone have an idea how to solve this problem?

 

Both machines are Linux xen-vservers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.