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

Benchmark MySQL installation requiring default-auth=mysql_native_password #249

Open
smitty-codes opened this issue May 18, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed low priority

Comments

@smitty-codes
Copy link

Hi, we have a MySQL installation (I think that is old) that requires the mysql native password argument - example from mysql command line below:
shell> mysql --default-auth=mysql_native_password ...

Reference link: https://dev.mysql.com/doc/refman/8.0/en/native-pluggable-authentication.html

How can we pass this connection parameter thru the Hammerdb config XML files or thru the GUI?

For more context, in the MySQL Connector/C++ version, the argument is "defaultAuth=mysql_native_password"

@sm-shaw
Copy link
Contributor

sm-shaw commented May 19, 2021

This is the default connection in HammerDB so default_authentication_plugin=mysql_native_password is set in the my.cnf.
There currently isn't a direct option to change the authentication plugin. (It has not been investigated to see if it is possible to pass it through the password option).
The interface used is here https://github.com/xdobry/mysqltcl/blob/master/generic/mysqltcl.c and uses the C interface.
The current options are:
[-user xxx] [-db mysql] [-port 3306] [-host localhost] [-socket sock] [-password pass] [-encoding encoding] [-ssl boolean] [-compress boolean] [-odbc boolean] [-noschema boolean] [-reconnect boolean]
If someone wants to update this interface then HammerDB could include this option in future.
The same interface has now been adapted to support MariaDB as well https://github.com/Jiang-Hua/mariatcl which will be in HammerDB v4.2.

@smitty-codes
Copy link
Author

Thanks for the feedback. Unfortunately haven’t worked in C for many years so likely will not be able to fix myself right now.

We ended up abandoning HammerDB and went with dbbench https://github.com/memsql/dbbench as a workaround.

@sm-shaw
Copy link
Contributor

sm-shaw commented Jun 6, 2021

Will leave this open as someone may wish to enable authentication beyond the default mysql_native_password. For now this has not been an issue. So will be tagged as low priority.

A best practice guide to contributing to HammerDB is here: https://www.hammerdb.com/blog/uncategorized/interacting-with-open-source-for-hammerdb-code-and-documentation/
This primer on database benchmarking is also useful to introduce the concepts of parallelism and concurrency and the differences between them - such as where co-routines should and shouldn't be used: https://www.hammerdb.com/blog/uncategorized/what-programming-languages-does-hammerdb-use-and-why-does-it-matter/.

@sm-shaw sm-shaw reopened this Jun 6, 2021
@sm-shaw sm-shaw added enhancement New feature or request good first issue Good for newcomers low priority help wanted Extra attention is needed labels Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed low priority
Projects
None yet
Development

No branches or pull requests

2 participants