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
3df9fde7
Commit
3df9fde7
authored
Dec 08, 2006
by
bar@mysql.com/bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl
into mysql.com:/usr/home/bar/mysql-5.0.b24158
parents
0d4b26fa
dcde1be1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
mysql-test/r/rpl_do_grant.result
mysql-test/r/rpl_do_grant.result
+11
-0
mysql-test/t/rpl_do_grant.test
mysql-test/t/rpl_do_grant.test
+16
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
mysql-test/r/rpl_do_grant.result
View file @
3df9fde7
...
...
@@ -20,6 +20,17 @@ set password for rpl_do_grant@localhost=password("does it work?");
select password<>_binary'' from mysql.user where user=_binary'rpl_do_grant';
password<>_binary''
1
update mysql.user set password='' where user='rpl_do_grant';
flush privileges;
select password<>'' from mysql.user where user='rpl_do_grant';
password<>''
0
set sql_mode='ANSI_QUOTES';
set password for rpl_do_grant@localhost=password('does it work?');
set sql_mode='';
select password<>'' from mysql.user where user='rpl_do_grant';
password<>''
1
delete from mysql.user where user=_binary'rpl_do_grant';
delete from mysql.db where user=_binary'rpl_do_grant';
flush privileges;
...
...
mysql-test/t/rpl_do_grant.test
View file @
3df9fde7
...
...
@@ -33,6 +33,22 @@ connection slave;
sync_with_master
;
select
password
<>
_binary
''
from
mysql
.
user
where
user
=
_binary
'rpl_do_grant'
;
#
# Bug#24158 SET PASSWORD in binary log fails under ANSI_QUOTES
#
connection
master
;
update
mysql
.
user
set
password
=
''
where
user
=
'rpl_do_grant'
;
flush
privileges
;
select
password
<>
''
from
mysql
.
user
where
user
=
'rpl_do_grant'
;
set
sql_mode
=
'ANSI_QUOTES'
;
set
password
for
rpl_do_grant
@
localhost
=
password
(
'does it work?'
);
set
sql_mode
=
''
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
password
<>
''
from
mysql
.
user
where
user
=
'rpl_do_grant'
;
# clear what we have done, to not influence other tests.
connection
master
;
delete
from
mysql
.
user
where
user
=
_binary
'rpl_do_grant'
;
...
...
sql/sql_acl.cc
View file @
3df9fde7
...
...
@@ -1498,7 +1498,7 @@ bool change_password(THD *thd, const char *host, const char *user,
{
query_length
=
my_sprintf
(
buff
,
(
buff
,
"SET PASSWORD FOR
\"
%-.120s
\"
@
\"
%-.120s
\"
=
\"
%-.120s
\"
"
,
(
buff
,
"SET PASSWORD FOR
'%-.120s'@'%-.120s'='%-.120s'
"
,
acl_user
->
user
?
acl_user
->
user
:
""
,
acl_user
->
host
.
hostname
?
acl_user
->
host
.
hostname
:
""
,
new_password
));
...
...
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