亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

玩轉MySQL8.0新特性

董旭陽 數據庫工程師
難度入門
時長 3小時 0分
學習人數
綜合評分9.33
7人評價 查看評價
10.0 內容實用
9.1 簡潔易懂
8.9 邏輯清晰
with recursive fb_list(n1, n2) as
(
select 0, 1
union all
select n2, n1+n2 from fb_list where n1 + n2 <=100
)
select 0
union all
select n2 from fb_list;
alter table t1 alter index indexname invisible; --讓隱藏索引變的不可見
set default role 'app_write' to 'write01','write02';
create user 'write02' identified by 'write02';

grant 'app_developer' to 'dev01','dev02','dev03';
grant 'app_read' to 'read01','read02'';
grant 'app_write'to 'write01','write02';

set default role 'app_developer' to 'dev01','dev02','dev03';
set default role 'app_read' to 'read01','read02';
create user 'dev01' identified by 'dev01';
create user 'dev02‘ identified by 'dev02';
create user ’dev03' identified by 'dev03';
create user 'read01‘ identified by 'read01';
create user 'read02' identified by 'read02';
create user 'write01' identified by 'write01';
create database appdb;
create table appdb.t1(id int);
create role 'app_developer','app_read','app_write';
grant all on appdb.* to 'app_developer';
grant select on appdb.* to 'app_read';
grant insert,update,delete on appdb.* to 'app_write';

最新回答 / weixin_慕斯卡4406795
請參閱?https://www.begtut.com/mysql/mysql-recursive-cte.html
斐波那契數列
1.限定最大值
with recursive cte(m, n) as (
select 0, 1
union all
select n, m+n from cte where n<100
) select m from cte;
2.限定位數
with recursive cte(id, m, n) as (
select 0, 0, 1
union all
select id+1, n, m+n from cte where id<10
) select m from cte;
Cr4
Mysql8.0新特性,我在工作中用的比較少,可能是層次不夠高把,或者DBA用的比較多。

已采納回答 / 董旭陽
授權可以一次指定多個角色和用戶,就像你上面的示例一樣。

講師回答 / 董旭陽
用的是 SSH Secure shell 連接到服務器,然后用 mysql 客戶端連接數據庫。
學習MySQL
讀取權限
create role 'read_role';
grant select on appdb.* to 'read_role';
create user 'read01' identified by 'Read01@2019';
grant 'read_role' to 'read01';
show grants for 'read01' using 'read_role';
請問大神們,jTable是怎么創建的?

最新回答 / 慕UI1788758
<...圖片...> 報錯信息
課程須知
1、一定的MySQL 基礎知識。 2、了解基本的數據庫操作。
老師告訴你能學到什么?
1. MySQL 8.0 版本中更加安全方便的用戶管理。 2. MySQL 8.0 版本新增的三種索引類型。 3. 如何使用強大的 SQL 通用表表達式和窗口函數功能。 4. InnoDB 存儲引擎相關的增強。 5. 新增的 JSON 數據處理函數。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消