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
error when deploying the sqitch database #158
Comments
Can |
MariaDB is in theory entirely compatible with MySQL - it's possible this is just an issue with 5.5. The error is documented here in any case: https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html#error_er_binlog_unsafe_routine I think the function just needs to be marked as |
Let me know if that fixes it (and if it will work with MySQL), would you? |
That does fix it for my local setup, but trying to run sqitch on a VM with MySQL installed (before even making this change) gives me the error
No idea what might be the problem here. I'll look more into it next week. |
Sqitch requires MySQL v5.6.4. I don't see anything at line five that would be a problem otherwise. :-( |
@doy What version of MySQL yields the syntax error? |
Seeing the issue on |
Here's my error log:
|
Interestingly, running the same command again results in:
|
Upgrading mysql fixed the issue. It seems that the version check occurs after it should, which is the cause of the issue. |
Odd. Do you still have 5.26 handy, @innoying? If so, what do you see when you deploy to a database for the first time with this patch?
|
I do still have it handy. I'll give the patch a try in a few hours once I get off work. If that doesn't work, I've been testing this on a server with nothing else on it, so I can give you root access to try anything you'd like if that would help. |
Thanks, @innoying. |
Interesting. My For the sake of documentation and people googling the issue (how I found it), I was able to replicate the issue by doing the following: I spawned up a fresh ubuntu 14.04 64-Bit server. Ran the following commands: apt-get update
apt-get upgrade
apt-get install mysql-server
mysql -u root -p
mysql> CREATE DATABASE blah; I set the root password to brew install sqitch_mysql
sqitch --engine mysql init blah
sqitch add Blah -n 'Blah'
sqitch deploy db:mysql://root:blah@127.0.0.1/blah (Where 127.0.0.1 is the ip of the ubuntu server)
With future runs resulting in:
Dropping the |
Thanks for the digging, @innoying. I think 363dbef should fix the issue, properly telling you on first deploy that your version of MySQL isn't supported. Thanks! |
This is with MariaDB 5.5.36. It causes verify scripts to fail, because the
sqitch.checkit
function doesn't exist.The text was updated successfully, but these errors were encountered: