Notice Create batch file and copy the following lines to it example notepad mysqlbat.bat then from command line type mysqlbat.bat @echo off set path=%path%;C:\ProgramData\MySQL\MySQL Server 5.7\bin mysql -uroot -p --default-character-set=utf8