Sergei Golubchik
33b9f80595
mysql_install_db: make sure the variable's value is visible
...
move the assignment out of a function, so that it wouldn't
happen in a subshell
2019-02-21 16:54:31 +01:00
Sergei Golubchik
65ffea3924
MDEV-18297 clarify mysql_install_db help text
2019-02-21 15:04:03 +01:00
Sergei Golubchik
83de75d66d
try harder to link unix_socket plugin statically
...
fix unix_socket tests to work if unix_socket is a built-in
2019-02-21 15:04:03 +01:00
Oleksandr Byelkin
93ac7ae70f
Merge branch '10.3' into 10.4
2019-02-21 14:40:52 +01:00
Oleksandr Byelkin
00906719fe
Merge branch '10.2' into bb-10.3-merge
2019-02-19 17:26:44 +01:00
Oleksandr Byelkin
91d506cf2d
Merge branch '10.1' into 10.2
2019-02-19 16:47:45 +01:00
Oleksandr Byelkin
431da59f1c
1. centos has symlinks /bin->usr/bin and /sbin -> usr/sbin,
...
but even if this script called as /bin/mysql_install_db
it is still standard install and scripts are in /usr/share/
(but not in the /share/)
2. fix of bindir path
2019-02-19 16:09:46 +01:00
Sergei Golubchik
b9f3f06857
MDEV-12484 Enable unix socket authentication by default
...
Change the default authentication for root@localhost to
IDENTIFIED VIA mysql_native_password USING 'invalid' OR unix_socket
which provides secure passwordless login, while still allowing
SET PASSWORD to work as expected.
Also create a second all-privilege account for the user that owns
datadir (and thus has full access to the data anyway).
Compile unix_socket plugin statically into the server.
2019-02-12 19:14:37 +01:00
Sergei Golubchik
f07b76fcfd
cleanup: remove reduntant variable
2019-02-12 19:14:37 +01:00
Oleksandr Byelkin
65c5ef9b49
dirty merge
2019-02-07 13:59:31 +01:00
Marko Mäkelä
a249e57b68
Merge 10.1 into 10.2
...
Temporarily disable a test for
commit 2175bfce3e9da8332f10ab0e0286dc93915533a2
because fixing it in 10.2 requires updating libmariadb.
2019-02-03 17:22:05 +02:00
Marko Mäkelä
213ece2f2e
Merge 10.1 into 10.1
...
This is joint work with Oleksandr Byelkin.
2019-02-02 13:00:15 +02:00
Oleksandr Byelkin
a3df9bcadc
Merge branch '5.5' into 10.0
2019-01-28 10:36:12 +01:00
Sergei Golubchik
9c5be7d131
MDEV-14580: mysql_install_db elements based on dirname of mysql_install_db
...
Avoid introducing new dependencies or new syntax.
That is, don't use $(...) and don't assume dirname is present.
And remove unsighty /foo/bar/../xyz from the path. Use dirname
instead of ../
2019-01-21 17:30:07 +01:00
Daniel Black
50e593386f
MDEV-14580: mysql_install_db elements based on dirname of mysql_install_db
...
Closes #1086
2019-01-21 17:30:07 +01:00
Alexander Kuleshov
78f62e9079
remove duplicated paragraph from mysql_install_db.sh
...
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
2019-01-16 23:55:59 +04:00
Sergei Golubchik
4abb8216a0
MDEV-17658 change the structure of mysql.user table
...
Implement User_table_json.
Fix scripts to use mysql.global_priv.
Fix tests.
2018-12-12 00:31:44 +01:00
Oleksandr Byelkin
28f08d3753
Merge branch '10.1' into 10.2
2018-09-14 08:47:22 +02:00
Oleksandr Byelkin
31081593aa
Merge branch '11.0' into 10.1
2018-09-06 22:45:19 +02:00
Anel Husakovic
4ba6327f95
Fix typo in --srcdir
option in echo message status of mysql_install_db
2018-08-25 17:51:15 +03:00
Marko Mäkelä
734db318ac
Merge 10.3 into 10.4
2018-08-16 10:08:30 +03:00
Monty
0e0f1092b8
Fixed some source comments and help texts
2018-08-14 11:22:05 +03:00
Marko Mäkelä
05459706f2
Merge 10.2 into 10.3
2018-08-03 15:57:23 +03:00
Marko Mäkelä
ef3070e997
Merge 10.1 into 10.2
2018-08-02 08:19:57 +03:00
Michael Widenius
0c745c743c
Don't give warnings from perror or resolveip with safemalloc
...
- Added my_end(0) before exit
- Fixed typo in mysql_install_db
2018-07-29 10:56:11 +03:00
Oleksandr Byelkin
cb5952b506
Merge branch '10.0' into bb-10.1-merge-sanja
2018-07-25 22:24:40 +02:00
Oleksandr Byelkin
304440b014
Merge branch '5.5' into bb-10.0-merge-sanja
2018-07-23 11:55:18 +02:00
Oleksandr Byelkin
0896d7ebc3
Merge branch '10.0' into bb-10.1-merge
2018-07-19 12:55:54 +02:00
Oleksandr Byelkin
e5c26fdfab
Merge branch '5.5' into bb-10.0-merge
2018-07-17 16:56:21 +02:00
Daniel Black
8c45eb3ea5
MDEV-15050 scripts: mysql_install_db.{sh|pl}, mysqld_multi - mysqld is in @sbindir@
...
Closes #551
2018-07-16 18:36:28 +02:00
Alexey Botchkov
25410d448d
MDEV-15473 Isolate/sandbox PAM modules, so that they can't crash the server.
...
mysql_install_db.sh script fixed.
2018-07-14 23:06:49 +04:00
Sergei Golubchik
36e59752e7
Merge branch '10.2' into 10.3
2018-06-30 16:39:20 +02:00
Michael Widenius
faef2e6a44
Added more help text in case mysql_install_db fails.
2018-06-27 13:41:19 +03:00
Sergei Golubchik
635c5e3281
mysql_install_db: clarify the after-install message
...
don't tell users to set the root password if they're using unix_socket
2018-06-21 10:15:27 +02:00
Sergei Golubchik
1db1340c0c
MDEV-14578: mysql_install_db install unix_socket plugin when --auth-root-authentication-method=socket
...
post-merge fixes
2018-06-21 10:15:27 +02:00
Daniel Black
53db5edbcf
MDEV-14578: mysql_install_db install unix_socket plugin when --auth-root-authentication-method=socket
...
$ cmake -DPLUGIN_AUTH_SOCKET=STATIC ../mariadb-server-10.2/
$ scripts/mysql_install_db --datadir=/tmp/mysqldatadir-auth-static --auth-root-socket-user=dan --auth-root-authentication-method=socket --builddir=. --srcdir=../mariadb-server-10.2
Installing MariaDB/MySQL system tables in '/tmp/mysqldatadir-auth-static' ...
OK
$ client/mysql -S /tmp/mysql.sock -e 'show create user dan@localhost'
+----------------------------------------------------------+
| CREATE USER for dan@localhost |
+----------------------------------------------------------+
| CREATE USER 'dan'@'localhost' IDENTIFIED VIA unix_socket |
+----------------------------------------------------------+
$ cmake -DPLUGIN_AUTH_SOCKET=NO ../mariadb-server-10.2/
$ scripts/mysql_install_db --datadir=/tmp/mysqldatadir-auth-none --auth-root-socket-user=dan --auth-root-authentication-method=socket --builddir=. --srcdir=../mariadb-server-10.2
Installing MariaDB/MySQL system tables in '/tmp/mysqldatadir-auth-none' ...
ERROR: 1126 Can't open shared library '.../plugin/auth_socket/auth_socket.so' (errno: 2, cannot open shared object file: No such file or directory)
2018-05-01 11:38:56 0 [ERROR] Aborting
$ cmake -DPLUGIN_AUTH_SOCKET=DYNAMIC ../mariadb-server-10.2/
$ scripts/mysql_install_db --datadir=/tmp/mysqldatadir-auth-dyn --auth-root-socket-user=dan --auth-root-authentication-method=socket --builddir=. --srcdir=../mariadb-server-10.2
Installing MariaDB/MySQL system tables in '/tmp/mysqldatadir-auth-dyn' ...
OK
$ ./sql/mysqld --datadir=/tmp/mysqldatadir-auth-dyn --lc-messages-dir=${PWD}/sql/share --plugin-dir=./plugin/auth_socket/
$ client/mysql -S /tmp/mysql.sock -e 'show create user dan@localhost'
+----------------------------------------------------------+
| CREATE USER for dan@localhost |
+----------------------------------------------------------+
| CREATE USER 'dan'@'localhost' IDENTIFIED VIA unix_socket |
+----------------------------------------------------------+
$ sudo make install
$ sudo chmod a+rwx /usr/local/mysql/data
$ cd /usr/local/mysql/
$ scripts/mysql_install_db --auth-root-socket-user=dan --auth-root-authentication-method=socket
Installing MariaDB/MySQL system tables in './data' ...
OK
..
$ bin/mysqld_safe
$ client/mysql -S /tmp/mysql.sock -e 'show create user dan@localhost'
+----------------------------------------------------------+
| CREATE USER for dan@localhost |
+----------------------------------------------------------+
| CREATE USER 'dan'@'localhost' IDENTIFIED VIA unix_socket |
+----------------------------------------------------------+
Merges #767
2018-06-21 10:15:27 +02:00
Daniel Black
87b0434e0f
MDEV-12645: mysql_install_db --no-test (postfix
...
mysql_test_db.sql is in the srcdir
2018-05-01 11:35:13 +04:00
Sergey Vojtovich
9a84980668
MDEV-12645 - mysql_install_db: no install test db option
...
Added --skip-test-db option to mysql_install_db. If specified, no test
database created and relevant grants issued.
Removed --skip-auth-anonymous-user option of mysql_install_db. Now it is
covered by --skip-test-db.
Dropped some Debian patches that did the same.
Removed unused make_win_bin_dist.1, make_win_bin_dist and
mysql_install_db.pl.in.
2018-04-30 19:34:08 +04:00
Marko Mäkelä
b006d2ead4
Merge bb-10.2-ext into 10.3
2018-02-15 10:22:03 +02:00
Sergei Golubchik
4771ae4b22
Merge branch 'github/10.1' into 10.2
2018-02-06 14:50:50 +01:00
Sergei Golubchik
d4df7bc9b1
Merge branch 'github/10.0' into 10.1
2018-02-02 10:09:44 +01:00
Vicențiu Ciorbaru
d833bb65d5
Merge remote-tracking branch '5.5' into 10.0
2018-01-24 12:29:31 +02:00
Daniel Black
9ee372736f
mysql_install_db: correct hosting/source/maillist information
2018-01-23 15:03:30 +04:00
Daniel Black
c98906e4fe
mysql_install_db: correct --skip-grant-tables help
2018-01-23 15:03:30 +04:00
Sergey Vojtovich
b75d767689
Fixed mysql_install_db --no-defaults
...
Regression after 5ea2801.
2018-01-13 13:05:09 +04:00
Daniel Black
5ea28015d5
mysql_install_db: Use --defaults-group-suffix if specified
...
Signed-off-by: Daniel Black <daniel@linux.vnet.ibm.com>
2018-01-12 12:09:06 +04:00
Monty
c24d1d665c
Improve error messages
...
- mysql_install_db now prints position to error file, if log-error is used
- Warning about compatibility now mentions MySQL 5.6 and 5.7
- Give warning if --show_compatibility_56 is used
2017-12-02 12:04:54 +02:00
Sergei Golubchik
e0a1c745ec
Merge branch '10.1' into 10.2
2017-10-24 14:53:18 +02:00
Sergei Golubchik
9d2e2d7533
Merge branch '10.0' into 10.1
2017-10-22 13:03:41 +02:00
Sergei Golubchik
da4503e956
Merge branch '5.5' into 10.0
2017-10-18 15:14:39 +02:00