Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Created October 14, 2016 16:49
Show Gist options
  • Save FeodorFitsner/5cd25c1e102e6fe5ef176fafd84ff175 to your computer and use it in GitHub Desktop.
Save FeodorFitsner/5cd25c1e102e6fe5ef176fafd84ff175 to your computer and use it in GitHub Desktop.
Enabling named pipes on MySQL for Windows
$iniPath="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini"
$newText = ([System.IO.File]::ReadAllText($iniPath)).Replace("# enable-named-pipe", "enable-named-pipe")
[System.IO.File]::WriteAllText($iniPath, $newText)
Restart-Service MySQL57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment