Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hybridadmin/dcc41f2db7f712f43a1ea76046982563 to your computer and use it in GitHub Desktop.
Save hybridadmin/dcc41f2db7f712f43a1ea76046982563 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