Forked from FeodorFitsner/mysql-windows-enable-named-pipes.ps1
Created
April 8, 2019 16:50
-
-
Save hybridadmin/dcc41f2db7f712f43a1ea76046982563 to your computer and use it in GitHub Desktop.
Enabling named pipes on MySQL for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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