MySQL----information-schema資料庫相關許可權的說明。

來源:互聯網
上載者:User

標籤:

MySQL中的information_schema資料庫比較特別有如下幾個要注意的地方。

  1、就算是一個新建立的使用者,也就是說這個使用者只有一個usage許可權。它都可以查看informatoin_schema中的部分表。

  2、嘗試授於grant select  on information_schema.* to ‘testuser‘@‘localhost‘;#這樣總是會出錯、可能是mysql中預設就有類似的設定吧。

  3、由於預設情況下使用者只能查看information_schema中的部分表,如果要指使用者可以查看全部的表,就要授於它process 許可權才行。

    grant process on *.* to ‘testuser‘@‘localhost‘;

    比如說不能執行:select * from INNODB_LOCKS ;提示:ERROR 1227 (42000): Access denied; you need (at least one of) the PROCESS privilege(s) for this operation

  4、MySQL中還有一個與information_schema差不多的資料庫它就是test。對於test的許可權也要小心。

    

MySQL----information-schema資料庫相關許可權的說明。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.