MySQL - When I put a value, it puts it's old value back
#1

Hello,

I'll keep it short. When there's for example in the MySQL:
"Hello" and I put: "Welcome"

I save it, press quit, then go back to the database and it has put it's own old value back! It's 'varchar' length 50. Does anyone have an idea what causes this?

Jochem
Reply
#2

Did you check the logs for errors?
Do you mind posting the code?
Reply
#3

You have to change the value while the user is logged of, otherwise the function wich saves the user variables just overwrite the new values.
Reply
#4

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
You have to change the value while the user is logged of, otherwise the function wich saves the user variables just overwrite the new values.
It's not about user levels here, but dynamic gates which I only create via the database and nowhere else. Though, I will try it with the server off.

Quote:
Originally Posted by Skorch
Посмотреть сообщение
Did you check the logs for errors?
Do you mind posting the code?
Sorry, I forgot to say, but I'm using Navicat and I am not really sure if there is a log there. I could try to send a query manual and see what it gives.

Edit: Running my own query works fine. There must be a problem somewhere else, but it was not the server which was offline.
Reply
#5

To enable debugging, you have to put this under ongamemodeinit:
mysql_debug(1);

Then the logs are created in samp server's directory in Debug.txt file.
Reply
#6

So this is actually a Navicat software problem? Make sure you properly choose to update the table. I have been there too!
Reply
#7

Quote:
Originally Posted by AndreT
Посмотреть сообщение
So this is actually a Navicat software problem? Make sure you properly choose to update the table. I have been there too!
I won't say this is a Navicat software problem - I need to have good arguments to claim something a problem of Navicat, and I don't think this is enough to call it a software problem.

Quote:
Originally Posted by Skorch
Посмотреть сообщение
To enable debugging, you have to put this under ongamemodeinit:
mysql_debug(1);

Then the logs are created in samp server's directory in Debug.txt file.
Like I said, this is not related to the SA-MP server or any plugin/script but to Navicat and MySQL
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)