Skip to content

Instantly share code, notes, and snippets.

@caverna
caverna / reset-mysql-8-root-password-windows.md
Last active October 18, 2022 07:47 — forked from pishangujeniya/reset-mysql-8-root-password-windows.md
Reset MySQL 8.0 root Password in Windows

Reset MySQL 8.0 root Password in Windows

  1. Stop the MySQL 8.0service from services
  2. Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open cmd
  3. Run mysqld --console --skip-grant-tables --shared-memory --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini"
  4. Open new cmd in the same path
  5. Run following commands
  6. mysql -u root
  7. select authentication_string,host from mysql.user where user='root';
  8. UPDATE mysql.user SET authentication_string='' WHERE user='root';
@caverna
caverna / ssh.cs
Created August 26, 2016 18:04 — forked from 0xF1o/ssh.cs
ssh.net Example - Keybased Authentication, File Upload, Shell Commands
/*
get SSH.NET (BSD License: http://sshnet.codeplex.com/license)
with NuGet:
>Install-Package SSH.NET -Version 2013.4.7
or just get the dll from here: http://j.mp/sshNet
*/
using System;