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

Distinguish between MariaDB and MySQL in Kernel::Modules::Installer #82

Closed
bschmalhofer opened this issue Jun 8, 2020 · 1 comment
Closed
Milestone

Comments

@bschmalhofer
Copy link
Contributor

bschmalhofer commented Jun 8, 2020

When creating the otobo database user it is advisable to explicitly set the authentication plugin mysql_native_password . This avoid surprises when the default authentication plugin changes. E.g. when MySQL 5.7 was upgraded to MySQL 8.

For MySQL 5.7 and MySQL 8 the following statement seems to work.

CREATE USER test1@localhost IDENTIFIED WITH mysql_native_password BY 'xxxx';

However this fails for MariaDB 10.5.3, There the statement:

CREATE USER test1@localhost IDENTIFIED WITH mysql_native_password AS PASSWORD( 'xxxx' );

works.
TODO: Look at $dbh->{'mysql_serverinfo'};and use the appropriat SQL statement.

See also #37.

bschmalhofer added a commit to bschmalhofer/otobo that referenced this issue Jun 8, 2020
bschmalhofer added a commit to bschmalhofer/otobo that referenced this issue Jun 8, 2020
Mixed up the two alternatives.
Coincidentally work for MariaDB, as the mysql_serverinfo check was messed up too.
svenoe added a commit that referenced this issue Jun 8, 2020
@bschmalhofer
Copy link
Contributor Author

No complaints so far. Closing the issue.

@bschmalhofer bschmalhofer added this to the OTOBO 10.0 milestone Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant