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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
95327abc
Commit
95327abc
authored
Oct 05, 2005
by
anozdrin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make mysql_fix_privilege_tables.sh not dependent on the current directory.
parent
3edd6c01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
scripts/mysql_fix_privilege_tables.sh
scripts/mysql_fix_privilege_tables.sh
+11
-2
No files found.
scripts/mysql_fix_privilege_tables.sh
View file @
95327abc
...
@@ -97,9 +97,11 @@ fi
...
@@ -97,9 +97,11 @@ fi
# Find where 'mysql' command is located
# Find where 'mysql' command is located
dirname
=
`
dirname
"
$0
"
`
if
test
-z
"
$bindir
"
if
test
-z
"
$bindir
"
then
then
for
i
in
@bindir@
$basedir
/bin
client
for
i
in
@bindir@
$basedir
/bin
"
$dirname
/../client"
do
do
if
test
-f
$i
/mysql
if
test
-f
$i
/mysql
then
then
...
@@ -109,6 +111,13 @@ then
...
@@ -109,6 +111,13 @@ then
done
done
fi
fi
if
test
-z
"
$bindir
"
then
echo
"Could not find MySQL command-line client (mysql)."
echo
"Please use --basedir to specify the directory where MySQL is installed."
exit
1
fi
cmd
=
"
$bindir
/mysql --no-defaults --force --user=
$user
--host=
$host
"
cmd
=
"
$bindir
/mysql --no-defaults --force --user=
$user
--host=
$host
"
if
test
!
-z
"
$password
"
;
then
if
test
!
-z
"
$password
"
;
then
cmd
=
"
$cmd
--password=
$password
"
cmd
=
"
$cmd
--password=
$password
"
...
@@ -128,7 +137,7 @@ fi
...
@@ -128,7 +137,7 @@ fi
# Find where first mysql_fix_privilege_tables.sql is located
# Find where first mysql_fix_privilege_tables.sql is located
for
i
in
$basedir
/support-files
$basedir
/share
$basedir
/share/mysql
\
for
i
in
$basedir
/support-files
$basedir
/share
$basedir
/share/mysql
\
$basedir
/scripts
$pkgdatadir
.
./scripts
$basedir
/scripts
$pkgdatadir
.
"
$dirname
"
do
do
if
test
-f
$i
/
$file
if
test
-f
$i
/
$file
then
then
...
...
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