2002-09-05 15:17:08 +02:00
|
|
|
delete from mysql.user where user='mysqltest_1';
|
|
|
|
delete from mysql.db where user='mysqltest_1';
|
|
|
|
flush privileges;
|
|
|
|
grant select on mysqltest.* to mysqltest_1@localhost require cipher "EDH-RSA-DES-CBC3-SHA";
|
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
|
|
|
|
GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
|
|
|
grant delete on mysqltest.* to mysqltest_1@localhost;
|
2002-09-11 05:40:08 +02:00
|
|
|
select * from mysql.user where user="mysqltest_1";
|
|
|
|
Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv ssl_type ssl_cipher x509_issuer x509_subject max_questions max_updates max_connections
|
|
|
|
localhost mysqltest_1 N N N N N N N N N N N N N N N N N N N N N SPECIFIED EDH-RSA-DES-CBC3-SHA 0 0 0
|
2002-09-05 15:17:08 +02:00
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
|
|
|
|
GRANT SELECT, DELETE ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
|
|
|
revoke delete on mysqltest.* from mysqltest_1@localhost;
|
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE CIPHER 'EDH-RSA-DES-CBC3-SHA'
|
|
|
|
GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
|
|
|
grant select on mysqltest.* to mysqltest_1@localhost require NONE;
|
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
|
|
|
grant USAGE on mysqltest.* to mysqltest_1@localhost require cipher "EDH-RSA-DES-CBC3-SHA" AND SUBJECT "testsubject" ISSUER "MySQL AB";
|
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE ISSUER 'MySQL AB' SUBJECT 'testsubject' CIPHER 'EDH-RSA-DES-CBC3-SHA'
|
|
|
|
GRANT SELECT ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
|
|
|
revoke all privileges on mysqltest.* from mysqltest_1@localhost;
|
|
|
|
show grants for mysqltest_1@localhost;
|
|
|
|
Grants for mysqltest_1@localhost
|
|
|
|
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' REQUIRE ISSUER 'MySQL AB' SUBJECT 'testsubject' CIPHER 'EDH-RSA-DES-CBC3-SHA'
|
|
|
|
delete from mysql.user where user='mysqltest_1';
|
|
|
|
flush privileges;
|