-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Charset definition doesn't take effect on new databases #14491
Comments
I know that the DefaultCharset directive has been removed for some time, so we know that doesn't do anything anymore. DefaultConnectionCollation refers to the connection between the MySQL server and phpMyAdmin, so I think that wouldn't change the default option for creating a new database. I'm not sure offhand why yours is using utf8 instead of utf8mb4; you're right that this is generally undesirable. I'd take a look in your MySQL configuration file because I suspect this default value comes from there instead of from phpMyAdmin. |
Isaac, I have MySQL with: character-set-server = utf8 For other reasons. $cfg['DefaultCharset'] = 'utf8mb4'; Am I thinking right? At least that's what makes sense for me, let me know if not. PS: I know that if i change the default in mysql when i create a new database it get's that charset, but from mysql and not from PMA settings. |
I think there's no setting in phpMyAdmin to control this value.
Yes, if such a setting were to exist, but I don't think either of these are meant to control that aspect of your connection in this case. I don't think that's a value that phpMyAdmin is currently able to change for you, I think the way things are currently implemented that it's controlled globally through the MySQL configuration or you'd have to change it manually for each database you create. |
Isaac, Oh got it, so it was removed, no efect! Just a suggestion (and request ;) ) |
@dddns I am also interested by this idea ! cc @ibennetch |
Great, someone thinks like me :) It's just my opinion!! |
@kartik1000 Are you interested by this enhancement? |
Howdy,
I have the default charset defined in config.inc.php
$cfg['DefaultCharset'] = 'utf8mb4';
$cfg['DefaultConnectionCollation'] = 'utf8mb4_general_ci';
But when I go to new databases, the default options is always:
utf8_general_ci
Shouldn't the default be utf8mb4_general_ci ?
PS: I know that if I change the default in my.ini it works, but as if i'm setting a default in PMA, is more logic to honor the PMA config than the server one.
The text was updated successfully, but these errors were encountered: