背景:故意修改Kubernetes叢集所在伺服器節點上的時間使Kubernetes憑證過期,重新頒發憑證後,使用kubeadm alpha certs check-expiration命令檢視憑證有效時間,相關憑證都已重新核發。
12/29/2023PS: 以上是在 Windows 10 下操作進行,如果不同作業系統,有可能 UserSettings.xml 所在目錄不同,就請自行找找 假設想要刪除登入的帳號「IRSAuth」 按下 Win+R 輸入「appdata\Roaming\Microsoft\SQL Server Management Studio\18.0」,再按下 Enter,就會進到 C:\Users[使用者名稱]\AppData\Roaming\Microsoft\SQL Server Management Studio\18.0 的目錄下 編輯 UserSettings.xml 檔,搜尋IRSAuth,找到其所在區段,將<Element>與</Element>之間的內容刪除(含<Element>本身也要刪掉喔!) 這樣 IRSAuth 就不見囉! 清除特定伺服器名稱歷史清單:
1/6/2023使用以下Select,組出修改Table定序的Script語法 --需要先選擇DB,在使用這段Script --如果Column有綁Index、FK、PK ,無法直接跑Script,要從Table>設計>Column屬性去修改 SELECT * from ( SELECT ('ALTER TABLE ' + quotename(TABLE_NAME) + ' ALTER COLUMN ' + quotename(COLUMN_NAME) + ' ' + quotename(DATA_TYPE) + CASE WHEN CHARACTER_MAXIMUM_LENGTH = -1 then '(max)' WHEN DATA_TYPE in ('text','ntext') then ''
1/3/2023極度危險, 慎用! EXEC sp_MSForEachTable 'TRUNCATE TABLE ?'
5/12/2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up