Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f07b76fc
Commit
f07b76fc
authored
Feb 05, 2019
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove reduntant variable
parent
7dfbb66f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+0
-2
scripts/mysql_system_tables_data.sql
scripts/mysql_system_tables_data.sql
+1
-1
No files found.
scripts/mysql_install_db.sh
View file @
f07b76fc
...
...
@@ -507,11 +507,9 @@ cat_sql()
case
"
$auth_root_authentication_method
"
in
normal
)
echo
"SET @skip_auth_root_nopasswd=NULL;"
echo
"SET @auth_root_socket=NULL;"
;;
socket
)
echo
"SET @skip_auth_root_nopasswd=1;"
echo
"SET @auth_root_socket='
$auth_root_socket_user
';"
;;
esac
...
...
scripts/mysql_system_tables_data.sql
View file @
f07b76fc
...
...
@@ -42,7 +42,7 @@ IF @auth_root_socket is not null THEN
IF
not
exists
(
select
1
from
information_schema
.
plugins
where
plugin_name
=
'unix_socket'
)
THEN
INSTALL
SONAME
'auth_socket'
;
END
IF
;
END
IF
;
INSERT
INTO
global_priv
SELECT
*
FROM
tmp_user_nopasswd
WHERE
@
had_user_table
=
0
AND
@
skip_auth_root_nopasswd
IS
NULL
;
INSERT
INTO
global_priv
SELECT
*
FROM
tmp_user_nopasswd
WHERE
@
had_user_table
=
0
AND
@
auth_root_socket
IS
NULL
;
INSERT
INTO
global_priv
SELECT
*
FROM
tmp_user_socket
WHERE
@
had_user_table
=
0
AND
@
auth_root_socket
IS
NOT
NULL
;
DROP
TABLE
tmp_user_nopasswd
,
tmp_user_socket
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment