-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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/MariaDB issue: Error 1709: Index column size too large. The maximum column size is 767 bytes. #2979
Comments
Please use latest stable version 1.2.3 as 1.0.1 is quite old |
I upgrated to 1.2.3, same issue. Nothing changed. |
Did you try |
Yes, sorry i didn't write in the first post, but I used this command before the other two. I'll add in the first post. |
@lunny can this be related to xorm? |
It seems to be a mariaDB related issue. I have just tried in a virtual machine with Debian 8 (wich runs mysql 5.5, very old...). I had no problem: installation succeeded! The problem is that in Debian 9 mariaDB comes in place of mysql, so I guess every user using Debian 9 should have this issue (I tried in different virtuamachine running Debian 9, even a fresh install and all produced that error), it's not only a problem of Gitea, also Gogs produces the same error. |
I will try with mariabd |
I opened a thread issue on gogs repository. An user answered me, giving a method that solved the problem. It's very laborious, but maybe it gives you an hint on what to change in gitea code to work properly: After 4 or 5 rounds you get every needed table and it's done." |
I cannot reproduce this issue on my macOS with mariadb docker on gitea master and gitea v1.2.3. |
Please upgrade MariaDB to |
Another temporary solution for MariaDB or for older MySQL (if you can't update it) is to put |
I had to do a little bit more to get this working. Also this sql for those who don't want to type it out: |
Hi
did the trick for me. |
Same here, on most recent Arch. All the suggestions above did not help!
Any other idea? |
One issue for me was the The command returned this: > ALTER TABLE 'release' ROW_FORMAT=DYNAMIC;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''release' ROW_FORMAT=DYNAMIC' at line 1 So
… instead, which syntactically makes it clear to MariaDB, that this is the table name. |
I'm on MariaDB 10.1.35 and I had to set
in addition to (which I had set already)
to deal with the exact same error. |
Oh, yeah, i already commented that, but GitHub's markdown parsing of course used the backticks for ending my code part. 😄 |
done |
Upgrading my Debian 9 stretch mariadb from 10.1 to 10.3 fixed the issue for me. |
install mariadb 10.3 works "debian 9.5" --Install dependency packages --Add MariaDB 10.3 repository and Import GPG key --install |
@JPabloSA your solution won't work on pi devices as new repositories can't be added |
I just realized that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
For me it was necessary to execute
But probably also adding to the config what @jives wrote should also work |
Work in MariaDB 9.8 ! Thanks !!!! |
[x]
):Description
While trying to install from the binary version, I had this error message: " Error 1709: Index column size too large. The maximum column size is 767 bytes."
I run Debian 9, where it is installed MariaDB (equivalent of MySQL) database.
I tried running:
SET GLOBAL innodb_large_prefix = ON;
SET GLOBAL innodb_file_format=Barracuda;
SET GLOBAL innodb_file_per_table=ON;
but nothing happened.
It seems to be a mariaDB related issue. I have just tried in a virtual machine with Debian 8 (wich runs mysql 5.5, very old...). I had no problem: installation succeeded! The fact is that in Debian 9 mariaDB comes in place of mysql, so I guess every user using Debian 9 should have this issue (I'v tried in different virtua machine running Debian 9, even in a fresh install, and all produced that error), it's not only a problem of Gitea, also Gogs produces the same error.
What else to do?
The text was updated successfully, but these errors were encountered: