mysqlcommand-linemysql5

Can we run a mysql query through command prompt in windows?


Can we run MySQL query from windows command prompt? If so, how can we do that and process the query result through command prompt?


Solution

  • Try to use mysql — the MySQL command-line tool with '--execute=statement' or '-e statement' option.