Use Win10 PowerShell quick start to close the landing MySQL

Log in MySQL are using the command line, when in use do not want to knock that trouble, wrote several Win10 following PowerShell, similar to the previous Win7 following bat or cmd command processing, improve efficiency, it is convenient

  • Start MySQL - start.ps1(Note suffix .ps1)

    .\bin\mysqld --console
  • Login MySQL - login.ps1

    .\bin\mysql -u hecg -p123456
  • Close MySQL - stop.ps1

    .\bin\mysqladmin -u hecg shutdown -p123456

Note that the above-extracting files by default in MySQL directory, if it is placed in a different location, which need to write absolute path. Also inside the user and password need to be replaced for yourself the appropriate information.

Execution method, 右键-> 使用PowerShell运行can be.

Guess you like

Origin www.cnblogs.com/HeCG95/p/12162996.html
Recommended