You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTER TABLE test002.test_data002 ADD INDEX index_type (type) , ALGORITHM=INPLACE, LOCK=NONE;
78
78
```
79
+
80
+
### 导出数据到文件
81
+
```
82
+
mysql -h${host} -u${user} --password=${password} --database=${db_name} --execute="select ${col1} AS '${col1_name}',case when(${col2}=1) then '${col2_name1}' else '${col2_name2}' end as '${col2_alias_name}' from ${table}" -X > /${dir}/${file}.xlsx
83
+
```
84
+
85
+
### 创建用户
86
+
```
87
+
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
88
+
```
89
+
90
+
### 授予权限
91
+
```
92
+
GRANT SELECT ON *.* TO 'readonly'@'%' IDENTIFIED BY '${password}';
0 commit comments