原创 常用MySQL數據庫操作指令

查詢端口 show global variables like 'port'; 清空表數據,自增從初始值開始 truncate table photo; 添加主鍵 alter table 表名 add primary key (id