Skip to main content

Change value for a PK column with AUTO_INCREMENT in mysql

· One min read
<code class="sql">show create table TABLE_NAME; // Check current AUTO_INCREMENT value
update IGNORE TABLE_NAME set primary_field = 'value' ...; // Change the column value with IGNORE keyword
alter table TABLE_NAME AUTO_INCREMENT = 50; // Set AUTO_INCREMENT
show create table TABLE_NAME; // Check current AUTO_INCREMENT value again

Run all programs as administrator by default on Windows 10

· One min read
  • Open Windows Registry
  • Located at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
  • Change EnableLUA to 0
  • Restart the computer

Reference articles: - https://www.bleepingcomputer.com/forums/t/716719/run-all-programs-as-admin-by-default/?p=4975198 - https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/user-account-control-admin-approval-mode-for-the-built-in-administrator-account

ClustrMaps