-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Table is not configured with utf8mb4, after upgrade #3959
Comments
So yeah, this is usually due to mis-configured databases/tables/schemes but it's new code and I want to make sure it's working properly because I'm not 100% sure it is. It's actually an UeberDB issue but whatever, here is fine. The logic here: https://github.com/ether/ueberDB/blob/master/mysql_db.js#L81 I'm going to make the assumption your Etherpad database is called Do the following commands:
Copy and paste the output (here is fine).Next... Copy/paste the final command..
Copy and paste the output. Your two outputs should be
and
If they are not, your database was not properly configured and certain characters will potentially break some pads on your instance. If you see latin in there at all, y'dun fucked up and you will need to run these commands (I think [not tested])...
and
If they don't work lemme know. |
Here is the output for the first command :
Such was your wish And this is for the second...
Oopss… |
sorry, I went a bit fast without seeing the end of the message, I'm going to test the database modification now. |
Great! It worked. |
Win. It's great to see my work / efforts validated so thanks man! :) |
Thanks for these commands! One of my servers had "latin1" here. However I certainly never told etherpad to use latin1, why is etherpad not able to properly configure its database itself? Is the expectation that every admin has to manually configure the character set of each database? |
I think our approach here was balanced and right, but I can understand if you feel a little frustrated that it's not click and go! <3 |
I'm the admin but I don't think I can decide which charset an application runs with -- does it even make sense to leave that choice to me? I would expect the wrong choice to just break the application. I am not deciding about the charset of the HTTP request/responses either, or the charset of the files stored in the file system. So, it seems rather strange to me that it would be up to the admin to decide internal details of an application such as the charset used for the database. You're not leaving the database schema to me, either. ;)
Oh I see. Well that's... sad, I guess? Seems like everyone got the charset problem solved these days by moving to utf8 except for mysql... :( So for now the answer seems to be "yes, admins are expected to configure this themselves". I realize this is the situation in the mysql ecosystem and not your doing, I just wanted to give some feedback from the perspective of a user. Having an error about it in the logs is a great start, but I also don't scan the logs for errors regularly, there's just too much stuff in the logs. Maybe one possible solution would be for etherpad to alter the database as appropriate by default, but have a config option to turn that off in case DBAs want to make a different choice? That would avoid the footgun -- it is only by pure chance that I even saw this issue, usually I would never have noticed. Maybe I am naive, but I expect the number of admins that want to override that choice to be tiny. |
Noted with thanks :) |
Noted with thanks :) +1 |
Hello
I am in a migration situation of my Etherpad instance. I migrated my database and after that I updated Etherpad. I have this coming out in the logs now:
Don't know if it can cause errors…
The text was updated successfully, but these errors were encountered: