14 Commits

Author SHA1 Message Date
0f27db3b8a Allow mysql-ssl option to differ 2023-07-14 15:20:40 +02:00
39eb421f33 CI: Update help_drv_mysql.t and status badge 2023-05-16 08:11:28 +02:00
8445775235 Merge branch '1.0' 2018-04-02 13:09:40 +03:00
92b1426276 Use --db-driver=mysql by default, if the MySQL driver is available.
If the MySQL driver is available and --db-driver option was explicitly
specified, assume MySQL and don't compain about multiple DB drivers
being available.

That was a popular request and is likely what most sysbench users want.
2018-04-02 11:20:55 +03:00
e5c8052027 Make --mysql-ssl behave like --ssl-mode in MySQL client utilities.
The problem with MySQL 5.7+ client libraries was that there was no way
to disable SSL usage from the sysbench command line, because the client
library defaults to MYSQL_OPT_SSL_MODE = SSL_MODE_REQUIRED, even if
--mysql-ssl is not used. So the only way to disable it was disabling SSL
on the server.

Now --mysql-ssl behaves like the --ssl-mode option in MySQL client
utilities. It accepts the following values (with "disabled" being the
default):

disabled, preferred, required, verify_ca, verify_identity.

When sysbench is built With pre-5.6 MySQL client libraries or MariaDB
client libraries, where support for SSL modes is not available,
--mysql-ssl behavior is not affected by this change, i.e. it remains a
boolean variable accepting the on/off values, with "off" being the
default.
2018-03-31 20:32:09 +03:00
b1a0694cc0 Added --mysql-ssl-key, --mysql-ca and --mysql-ssl-cert.
Replace hard-coded values for client SSL path names with driver options,
at the same time making it possible to skip those options even when
--mysql-ssl is used.
2018-03-31 15:28:29 +03:00
a3b4c0610e Add option declarations to OLTP tests.
All bundled OLTP tests now declare their supported options. Which means:

- unknown options are not be silently accepted, but throw an
  error (fixes #15)
- 'sysbench /any OLTP script/ help' now prints a list of supported
  options, their descriptions, types and default values just as built-in
  tests do (fixes #79)
2017-01-26 14:35:01 +03:00
2cda228c7e Command line options refactoring:
- add support for 'validator' functions
- add support to define command line options after test
initialization. It is a prerequisite for option definitions in Lua
scripts
- various code cleanups
2017-01-25 19:09:44 +03:00
a4218987cb Fix help_drv_*.t tests broken by the command line syntax change. 2017-01-25 16:23:38 +03:00
d767dba581 Move the unused --myisam-max-rows option from drv_mysql.c to legacy API. 2017-01-18 21:52:32 +03:00
c3fd06203b Better formatting for help/usage text. 2016-12-30 21:23:29 +03:00
8ff0cc14e4 Fix help_drv_mysql.t after adding --mysql-ssl-cipher. 2016-11-29 22:04:11 +03:00
fb3c2491b5 Merge branch '0.5' into 1.0 2016-09-07 11:46:53 +03:00
7418441572 Move tests into a separate subdirectory.
Move regression tests into a separate subdirectory. Update README in
tests and covert it from org-mode to markdown. Also add 'make distcheck'
to Travis CI testing.
2016-09-07 10:37:15 +03:00