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
ab57ede7
Commit
ab57ede7
authored
Nov 25, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
7d6479cc
b9eb7a02
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
mysql-test/install_test_db.sh
mysql-test/install_test_db.sh
+9
-2
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+6
-0
scripts/mysql_prepare_privilege_tables_for_5.sql
scripts/mysql_prepare_privilege_tables_for_5.sql
+53
-0
No files found.
mysql-test/install_test_db.sh
View file @
ab57ede7
...
...
@@ -12,11 +12,13 @@ if [ x$1 = x"-bin" ]; then
BINARY_DIST
=
1
fix_bin
=
mysql-test
scriptdir
=
../bin
libexecdir
=
../libexec
else
execdir
=
../sql
bindir
=
../client
fix_bin
=
.
scriptdir
=
../scripts
libexecdir
=
../libexec
fi
vardir
=
var
...
...
@@ -36,8 +38,13 @@ EXTRA_ARG=""
if
test
!
-x
$execdir
/mysqld
then
echo
"mysqld is missing - looked in
$execdir
"
if
test
!
-x
$libexecdir
/mysqld
then
echo
"mysqld is missing - looked in
$execdir
and in
$libexecdir
"
exit
1
else
execdir
=
$libexecdir
fi
fi
# On IRIX hostname is in /usr/bsd so add this to the path
...
...
mysql-test/mysql-test-run.sh
View file @
ab57ede7
...
...
@@ -229,6 +229,7 @@ while test $# -gt 0; do
--local
)
USE_RUNNING_SERVER
=
""
;;
--extern
)
USE_RUNNING_SERVER
=
"1"
;;
--tmpdir
=
*
)
MYSQL_TMP_DIR
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--tmpdir=;;"
`
;;
--start-from
=
*
)
START_FROM
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--start-from=;;"
`
;;
--local-master
)
MASTER_MYPORT
=
3306
;
EXTRA_MYSQL_TEST_OPT
=
"
$EXTRA_MYSQL_TEST_OPT
--host=127.0.0.1
\
...
...
@@ -1185,6 +1186,11 @@ run_testcase ()
fi
fi
if
[
"
$tname
"
'<'
"
$START_FROM
"
]
;
then
# skip_test $tname;
return
;
fi
if
[
-n
"
$DO_TEST
"
]
;
then
DO_THIS_TEST
=
`
$EXPR
\(
$tname
:
"
$DO_TEST
"
\)
!=
0
`
if
[
x
$DO_THIS_TEST
=
x0
]
;
...
...
scripts/mysql_prepare_privilege_tables_for_5.sql
0 → 100644
View file @
ab57ede7
use
mysql
;
--
-- merging `host` table and `db`
--
UPDATE
IGNORE
host
SET
Host
=
'%'
WHERE
Host
=
''
;
DELETE
FROM
host
WHERE
Host
=
''
;
INSERT
IGNORE
INTO
db
(
User
,
Host
,
Select_priv
,
Insert_priv
,
Update_priv
,
Delete_priv
,
Create_priv
,
Drop_priv
,
Grant_priv
,
References_priv
,
Index_priv
,
Alter_priv
,
Create_tmp_table_priv
,
Lock_tables_priv
)
SELECT
d
.
User
,
h
.
Host
,
(
d
.
Select_priv
=
'Y'
||
h
.
Select_priv
=
'Y'
)
+
1
,
(
d
.
Insert_priv
=
'Y'
||
h
.
Select_priv
=
'Y'
)
+
1
,
(
d
.
Update_priv
=
'Y'
||
h
.
Update_priv
=
'Y'
)
+
1
,
(
d
.
Delete_priv
=
'Y'
||
h
.
Delete_priv
=
'Y'
)
+
1
,
(
d
.
Create_priv
=
'Y'
||
h
.
Create_priv
=
'Y'
)
+
1
,
(
d
.
Drop_priv
=
'Y'
||
h
.
Drop_priv
=
'Y'
)
+
1
,
(
d
.
Grant_priv
=
'Y'
||
h
.
Grant_priv
=
'Y'
)
+
1
,
(
d
.
References_priv
=
'Y'
||
h
.
References_priv
=
'Y'
)
+
1
,
(
d
.
Index_priv
=
'Y'
||
h
.
Index_priv
=
'Y'
)
+
1
,
(
d
.
Alter_priv
=
'Y'
||
h
.
Alter_priv
=
'Y'
)
+
1
,
(
d
.
Create_tmp_table_priv
=
'Y'
||
h
.
Create_tmp_table_priv
=
'Y'
)
+
1
,
(
d
.
Lock_tables_priv
=
'Y'
||
h
.
Lock_tables_priv
=
'Y'
)
+
1
FROM
db
d
,
host
h
WHERE
d
.
Host
=
''
;
UPDATE
IGNORE
db
SET
Host
=
'%'
WHERE
Host
=
''
;
DELETE
FROM
db
WHERE
Host
=
''
;
TRUNCATE
TABLE
host
;
--
-- Adding missing users to `user` table
--
-- note that invalid password causes the user to be skipped during the
-- load of grand tables (at mysqld startup) thus three following inserts
-- do not affect anything
INSERT
IGNORE
user
(
User
,
Host
,
Password
)
SELECT
User
,
Host
,
"*"
FROM
db
;
INSERT
IGNORE
user
(
User
,
Host
,
Password
)
SELECT
User
,
Host
,
"*"
FROM
tables_priv
;
INSERT
IGNORE
user
(
User
,
Host
,
Password
)
SELECT
User
,
Host
,
"*"
FROM
columns_priv
;
SELECT
DISTINCT
"There are user accounts with the username 'PUBLIC'. In the SQL-1999
(or later) standard this name is reserved for PUBLIC role and can
not be used as a valid user name. Consider renaming these accounts before
upgrading to MySQL-5.0.
These accounts are:"
x
FROM
user
WHERE
user
=
'PUBLIC'
;
SELECT
CONCAT
(
user
,
'@'
,
host
)
FROM
user
WHERE
user
=
'PUBLIC'
;
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