Using MySQL Command Line from MySQL Workbench

If you have MySQL Workbench installed, it also includes mysql.exe so you can run MySQL Command Line.
All you need to do is open the command prompt and navigate to ‘MySQL Workbench’ install folder - which in my case is:

cd "C:\Program Files\MySQL\MySQL Workbench 8.0 CE"

Then from there run:

mysql -u{username} -p{password} -h{host}

Image: Contents of MySQL Workbench 8.0 CE folder, listing *mysql* named files

Image: Using mysql command line from MySQL Workbench

Comments