2005-09-08 10:09:30 +02:00
|
|
|
drop table if exists t1,t2;
|
2002-12-05 12:01:15 +01:00
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_mysql
|
2006-11-21 21:32:58 +01:00
|
|
|
binlog_index
|
2004-10-10 12:15:14 +02:00
|
|
|
columns_priv
|
|
|
|
db
|
2006-01-10 19:16:58 +01:00
|
|
|
event
|
2004-10-10 12:15:14 +02:00
|
|
|
func
|
2006-01-19 03:56:06 +01:00
|
|
|
general_log
|
2004-10-10 12:15:14 +02:00
|
|
|
help_category
|
|
|
|
help_keyword
|
|
|
|
help_relation
|
|
|
|
help_topic
|
|
|
|
host
|
2005-11-06 13:13:06 +01:00
|
|
|
plugin
|
2004-10-10 12:15:14 +02:00
|
|
|
proc
|
2004-12-23 11:46:24 +01:00
|
|
|
procs_priv
|
2006-01-19 03:56:06 +01:00
|
|
|
slow_log
|
2004-10-10 12:15:14 +02:00
|
|
|
tables_priv
|
|
|
|
time_zone
|
|
|
|
time_zone_leap_second
|
|
|
|
time_zone_name
|
|
|
|
time_zone_transition
|
|
|
|
time_zone_transition_type
|
|
|
|
user
|
2002-12-05 12:01:15 +01:00
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_test
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,root,z,test2,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'root'@'localhost' (using password: YES)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,root,z,test,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'root'@'localhost' (using password: YES)
|
2002-12-05 12:01:15 +01:00
|
|
|
grant ALL on *.* to test@localhost identified by "gambling";
|
|
|
|
grant ALL on *.* to test@127.0.0.1 identified by "gambling";
|
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_mysql
|
2006-11-21 21:32:58 +01:00
|
|
|
binlog_index
|
2004-10-10 12:15:14 +02:00
|
|
|
columns_priv
|
|
|
|
db
|
2006-01-10 19:16:58 +01:00
|
|
|
event
|
2004-10-10 12:15:14 +02:00
|
|
|
func
|
2006-01-19 03:56:06 +01:00
|
|
|
general_log
|
2004-10-10 12:15:14 +02:00
|
|
|
help_category
|
|
|
|
help_keyword
|
|
|
|
help_relation
|
|
|
|
help_topic
|
|
|
|
host
|
2005-11-06 13:13:06 +01:00
|
|
|
plugin
|
2004-10-10 12:15:14 +02:00
|
|
|
proc
|
2004-12-23 11:46:24 +01:00
|
|
|
procs_priv
|
2006-01-19 03:56:06 +01:00
|
|
|
slow_log
|
2004-10-10 12:15:14 +02:00
|
|
|
tables_priv
|
|
|
|
time_zone
|
|
|
|
time_zone_leap_second
|
|
|
|
time_zone_name
|
|
|
|
time_zone_transition
|
|
|
|
time_zone_transition_type
|
|
|
|
user
|
2002-12-05 12:01:15 +01:00
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_test
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,,test2,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,,"",MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,zorro,test2,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,zorro,test,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
|
2004-07-08 15:54:07 +02:00
|
|
|
update mysql.user set password=old_password("gambling2") where user=_binary"test";
|
2002-12-05 12:01:15 +01:00
|
|
|
flush privileges;
|
2004-08-26 17:26:38 +02:00
|
|
|
set password="";
|
2004-07-30 22:05:08 +02:00
|
|
|
set password='gambling3';
|
|
|
|
ERROR HY000: Password hash should be a 41-digit hexadecimal number
|
2003-07-08 00:36:14 +02:00
|
|
|
set password=old_password('gambling3');
|
2002-12-05 12:01:15 +01:00
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_mysql
|
2006-11-21 21:32:58 +01:00
|
|
|
binlog_index
|
2004-10-10 12:15:14 +02:00
|
|
|
columns_priv
|
|
|
|
db
|
2006-01-10 19:16:58 +01:00
|
|
|
event
|
2004-10-10 12:15:14 +02:00
|
|
|
func
|
2006-01-19 03:56:06 +01:00
|
|
|
general_log
|
2004-10-10 12:15:14 +02:00
|
|
|
help_category
|
|
|
|
help_keyword
|
|
|
|
help_relation
|
|
|
|
help_topic
|
|
|
|
host
|
2005-11-06 13:13:06 +01:00
|
|
|
plugin
|
2004-10-10 12:15:14 +02:00
|
|
|
proc
|
2004-12-23 11:46:24 +01:00
|
|
|
procs_priv
|
2006-01-19 03:56:06 +01:00
|
|
|
slow_log
|
2004-10-10 12:15:14 +02:00
|
|
|
tables_priv
|
|
|
|
time_zone
|
|
|
|
time_zone_leap_second
|
|
|
|
time_zone_name
|
|
|
|
time_zone_transition
|
|
|
|
time_zone_transition_type
|
|
|
|
user
|
2002-12-05 12:01:15 +01:00
|
|
|
show tables;
|
2004-10-10 12:15:14 +02:00
|
|
|
Tables_in_test
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,,test2,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,,test,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: NO)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,zorro,test2,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
|
2005-11-07 22:30:44 +01:00
|
|
|
connect(localhost,test,zorro,test,MASTER_PORT,MASTER_SOCKET);
|
2005-10-12 13:56:07 +02:00
|
|
|
ERROR 28000: Access denied for user 'test'@'localhost' (using password: YES)
|
2004-07-08 15:54:07 +02:00
|
|
|
delete from mysql.user where user=_binary"test";
|
2003-06-13 11:17:31 +02:00
|
|
|
flush privileges;
|
2005-08-30 15:22:19 +02:00
|
|
|
create table t1 (id integer not null auto_increment primary key);
|
|
|
|
create temporary table t2(id integer not null auto_increment primary key);
|
|
|
|
set @id := 1;
|
|
|
|
delete from t1 where id like @id;
|
2005-09-08 10:09:30 +02:00
|
|
|
drop table t1;
|