tailieunhanh - Pro MySQL experts voice in open source phần 8

Tham khảo tài liệu 'pro mysql experts voice in open source phần 8', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 15 USER ADMINISTRATION 507 Granting All Privileges When you want to grant or revoke all available privileges for a user except for the GRANT OPTION privilege at a specific privilege scope level you can substitute the keyword ALL for the much longer and cumbersome list of privileges. For instance if you wanted to provide mkruck@localhost all privileges on the table you could issue the following GRANT ALL ON TO mkruck @ localhost This would affect all table-level privileges SELECT INSERT UPDATE DELETE CREATE DROP INDEX and ALTER. Issuing GRANT ALL requests at other scope levels yields similar results. Consider this example GRANT ALL ON ToyStore. TO mkruck @ This would grant the user account mkruck@ the database-level privileges of ALTER ALTER ROUTINE CREATE CREATE ROUTINE CREATE TEMPORARY TABLES CREATE View delete DROP EXECUTE INSERT UPDATE INDEX SELECT SHOW VIEW and LOCK TABLES. By using the . modifier you grant the user every privilege except the GRANT OPTION privilege so take care when using the ALL keyword to use the correct scope modifier after the ON keyword To revoke all privileges issued to a user account use the REVOKE ALL command REVOKE ALL ON . FROM mkruck @ localhost This would remove all global privileges from mkruck@localhost except for the GRANT OPTION privilege. To include the GRANT OPTION privilege in the REVOKE command issue the following version REVOKE ALL GRANT OPTION ON . FROM mkruck @ localhost This syntax is available from MySQL . Prior to this version two statements are necessary to remove all privileges for a user REVOKE ALL ON . FROM mkruck @ localhost REVOKE GRANT OPTION ON . FROM mkruck @ localhost Viewing User Privileges You can use a number of methods to obtain information regarding a user s granted or revoked privileges. Which method you choose is a really just a matter of formatting preference. Here we ll cover using the SHOW GRANTS command and querying

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.