New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql takes some time to perform timeshift #112
Comments
Hi @v4umak , did you find solution? Can you also post LD_PRELOAD ? I'm trying the same thing but mysql statements are not affected by faketime but PHP scripts are. results:
PHP script (echo date('l jS \of F Y h:i:s A');) As you can see, both are triggered at the same time, but mysql doesn't use faketime library. ` |
Well, I might be completely mistaken, but when you run the "select now()" query with a mysql client, doesn't it fetch the time from the mysql server and simply displays it? In other words, are you trying to use libfaketime on the mysql client or on the mysql server? I don't think changing a mysql client's system time (via libfaketime or otherwise) will have any effect on the time reported by the mysql server. But I don't know the details of how the mysql client is implemented, so this may be a red herring. :-) |
MySQL server is running inside docker container (Debian) along with nginx and PHP. |
Looks like the mysql server (mysqld) is not properly started with faketime. Local time (or using faketime) for the mysql client is irrelevant. |
I've tried to use libfaketime in the docker container with mysql. When I shift time, it implements immidiately if I use date function, but when I perform "select now()" it takes some time. I've tried to use FAKETIME_NO_CACHE, but it doesn't affect. Is it expected? I wanted to use libfaketime for integration tests so it makes tests slower.
The text was updated successfully, but these errors were encountered: