Skip to content
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 database #79

Open
willemhoog opened this issue Dec 28, 2015 · 8 comments
Open

MySQl database #79

willemhoog opened this issue Dec 28, 2015 · 8 comments
Assignees
Labels

Comments

@willemhoog
Copy link

Hey,

I'm trying to use a MySQL database.
But I get the error:

Specified key was too long; max key length is 767 bytes

@willemhoog
Copy link
Author

Used diffent connectionstring. But nothing seems to work.
What is the correct connetionstring?

@fschultz
Copy link
Contributor

Hi,
I suspect that your connection string might be correct and that the error that you see comes from the creation of the tables in the database. Or more precis one of the primary keys that is out of range. I'm a little bit puzzled why since there shouldn't be any keys as large as that, but I'll try to find out why and get back to you.

@fschultz fschultz self-assigned this Dec 28, 2015
@fschultz fschultz added the bug label Dec 28, 2015
@fschultz
Copy link
Contributor

Which version of MySQL are you using?

@willemhoog
Copy link
Author

I'm using 5.x.

@fschultz
Copy link
Contributor

Thanks! I'll set up a MySQL 5.x database to see if I can fix this issue.

@fschultz
Copy link
Contributor

fschultz commented Jan 4, 2016

I've found the issue and will commit an update tomorrow.

@fschultz
Copy link
Contributor

fschultz commented Jan 6, 2016

I've created a new branch which should work with MySQL: https://github.com/KalikoCMS/KalikoCMS.Core/tree/1.1.1-dev

I will add a few other fixes before pushing a new 1.1.1 NuGet-package later this week.

@fschultz fschultz added this to the Release 1.1.1 milestone Jan 6, 2016
@fschultz
Copy link
Contributor

fschultz commented Jan 8, 2016

Seems there's some trouble with the fix :( It solves the problem for new websites using MySQL but introduces another for existing installations. I'm sorry to say it, but I need to revert the previous check-in while waiting for some help concerning Telerik's Data Access that handles the schemas.

While waiting for a new solution this version can be used to run with MySQL:
https://github.com/KalikoCMS/KalikoCMS.Core/tree/43f7c0d6797bcf4755f58cbd942fce1911abc3a6

Please note that there can be a bit of manual work to update the MySQL database if using the version linked above since one of the tables might require change.

@fschultz fschultz removed this from the Release 1.1.1 milestone Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants