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
950e45de
Commit
950e45de
authored
Jan 26, 2004
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/Bugs/mysql-4.1.long
parents
4f6330d8
fb6338d1
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
43 additions
and
13 deletions
+43
-13
include/mysqld_error.h
include/mysqld_error.h
+2
-1
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+1
-0
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+1
-0
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+1
-0
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+2
-1
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+1
-0
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+1
-0
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+1
-0
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+1
-0
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+1
-0
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+1
-0
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+1
-0
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+1
-0
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+1
-0
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+1
-0
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+1
-0
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+1
-0
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+1
-0
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+1
-0
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+1
-0
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+1
-0
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+1
-0
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+1
-0
sql/sql_acl.cc
sql/sql_acl.cc
+17
-11
No files found.
include/mysqld_error.h
View file @
950e45de
...
...
@@ -305,4 +305,5 @@
#define ER_WARN_DEPRECATED_SYNTAX 1286
#define ER_NON_UPDATABLE_TABLE 1287
#define ER_FEATURE_DISABLED 1288
#define ER_ERROR_MESSAGES 289
#define ER_SKIP_GRANT_TABLES 1289
#define ER_ERROR_MESSAGES 290
sql/share/czech/errmsg.txt
View file @
950e45de
...
...
@@ -301,3 +301,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/danish/errmsg.txt
View file @
950e45de
...
...
@@ -295,3 +295,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/dutch/errmsg.txt
View file @
950e45de
...
...
@@ -303,3 +303,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/english/errmsg.txt
View file @
950e45de
...
...
@@ -291,4 +291,5 @@ character-set=latin1
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working",
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/estonian/errmsg.txt
View file @
950e45de
...
...
@@ -297,3 +297,4 @@ character-set=latin7
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/french/errmsg.txt
View file @
950e45de
...
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/german/errmsg.txt
View file @
950e45de
...
...
@@ -304,3 +304,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/greek/errmsg.txt
View file @
950e45de
...
...
@@ -292,3 +292,4 @@ character-set=greek
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/hungarian/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/italian/errmsg.txt
View file @
950e45de
...
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/japanese/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=ujis
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/korean/errmsg.txt
View file @
950e45de
...
...
@@ -292,3 +292,4 @@ character-set=euckr
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/norwegian-ny/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/norwegian/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/polish/errmsg.txt
View file @
950e45de
...
...
@@ -296,3 +296,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/portuguese/errmsg.txt
View file @
950e45de
...
...
@@ -293,3 +293,4 @@ character-set=latin1
"'%s' é desatualizado. Use '%s' em seu lugar.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/romanian/errmsg.txt
View file @
950e45de
...
...
@@ -296,3 +296,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/russian/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=koi8r
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/serbian/errmsg.txt
View file @
950e45de
...
...
@@ -287,3 +287,4 @@ character-set=cp1250
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/slovak/errmsg.txt
View file @
950e45de
...
...
@@ -300,3 +300,4 @@ character-set=latin2
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/spanish/errmsg.txt
View file @
950e45de
...
...
@@ -294,3 +294,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/swedish/errmsg.txt
View file @
950e45de
...
...
@@ -292,3 +292,4 @@ character-set=latin1
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/share/ukrainian/errmsg.txt
View file @
950e45de
...
...
@@ -297,3 +297,4 @@ character-set=koi8u
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
"MySQL is started in --skip-grant-tables mode. You can't use this command"
sql/sql_acl.cc
View file @
950e45de
...
...
@@ -1114,8 +1114,8 @@ bool check_change_password(THD *thd, const char *host, const char *user)
{
if
(
!
initialized
)
{
send_error
(
thd
,
ER_
PASSWORD_NOT_ALLOWED
);
/* purecov: inspected */
return
(
1
);
/* purecov: inspected */
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
/* purecov: inspected */
return
(
1
);
/* purecov: inspected */
}
if
(
!
thd
->
slave_thread
&&
(
strcmp
(
thd
->
user
,
user
)
||
...
...
@@ -1590,8 +1590,14 @@ static int replace_db_table(TABLE *table, const char *db,
char
what
=
(
revoke_grant
)
?
'N'
:
'Y'
;
DBUG_ENTER
(
"replace_db_table"
);
if
(
!
initialized
)
{
my_error
(
ER_SKIP_GRANT_TABLES
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
}
/* Check if there is such a user in user table in memory? */
if
(
!
initialized
||
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
if
(
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
{
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
...
...
@@ -2167,7 +2173,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
if
(
!
initialized
)
{
send_error
(
thd
,
ER_
UNKNOWN_COM_ERROR
);
/* purecov: inspected */
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
}
if
(
rights
&
~
TABLE_ACLS
)
...
...
@@ -2377,8 +2383,8 @@ int mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
DBUG_ENTER
(
"mysql_grant"
);
if
(
!
initialized
)
{
my_error
(
ER_
UNKNOWN_COM_ERROR
,
MYF
(
0
));
/* purecov: tested */
return
-
1
;
/* purecov: tested */
my_error
(
ER_
SKIP_GRANT_TABLES
,
MYF
(
0
));
/* purecov: tested */
DBUG_RETURN
(
-
1
);
/* purecov: tested */
}
if
(
lower_case_table_names
&&
db
)
...
...
@@ -2982,8 +2988,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
LINT_INIT
(
acl_user
);
if
(
!
initialized
)
{
send_error
(
thd
,
ER_
UNKNOWN_COM_ERROR
);
DBUG_RETURN
(
-
1
);
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
DBUG_RETURN
(
1
);
}
if
(
lex_user
->
host
.
length
>
HOSTNAME_LENGTH
||
lex_user
->
user
.
length
>
USERNAME_LENGTH
)
...
...
@@ -3335,7 +3341,7 @@ int open_grant_tables(THD *thd, TABLE_LIST *tables)
if
(
!
initialized
)
{
send_error
(
thd
,
ER_
OUT_OF_RESOURCES
,
ER
(
ER_OUT_OF_RESOURCES
)
);
send_error
(
thd
,
ER_
SKIP_GRANT_TABLES
);
DBUG_RETURN
(
-
1
);
}
...
...
@@ -3416,7 +3422,7 @@ int mysql_drop_user(THD *thd, List <LEX_USER> &list)
DBUG_ENTER
(
"mysql_drop_user"
);
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
DBUG_RETURN
(
result
==
1
?
0
:
-
1
);
DBUG_RETURN
(
result
==
1
?
0
:
1
);
rw_wrlock
(
&
LOCK_grant
);
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
...
...
@@ -3529,7 +3535,7 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
DBUG_ENTER
(
"mysql_revoke_all"
);
if
((
result
=
open_grant_tables
(
thd
,
tables
)))
DBUG_RETURN
(
result
==
1
?
0
:
-
1
);
DBUG_RETURN
(
result
==
1
?
0
:
1
);
rw_wrlock
(
&
LOCK_grant
);
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
...
...
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