生成数据字典
SELECT
T.TABLE_SCHEMA AS '数据库名',
C.TABLE_NAME AS '表名' ,
T.TABLE_COMMENT AS '表中文名' ,
C.COLUMN_NAME AS '字段名' ,
C.COLUMN_COMMENT AS '字段中文名' ,
C.COLUMN_TYPE AS '数据类型' ,
C.IS_NULLABLE AS '允许为空',
C.COLUMN_DEFAULT AS '
import os
# 从 .gitignore 文件中读取需要忽略的路径
def load_gitignore(ignore_file=".gitignore"):
ignore_paths = set()
if os.path.exists(ignore_file):
with open(ignore_file, 'r', encoding="utf-8") as f:
ignore_paths = {line.strip() for
mysql部署
更新 apt 列表 apt-get upgrade
安装 mysql apt-get install mysql-server
启动数据库 # 启动: service mysql start
# 重启: service mysql restart
# 关闭: service mysql stop
查看默认用户密码 cat /etc/mysql/debian.cnf
用上述账号登录 mysql -h 127.0.0.1 -udebian-sys-maint -p
修改root