Can we run MySQL query from windows command prompt? If so, how can we do that and process the query result through command prompt?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
Try to use mysql — the MySQL command-line tool with '--execute=statement' or '-e statement' option.
Try this on Windows:
Good Luck.
You can install the MySQL client for windows and then use that for sending commands to a server.
http://dev.mysql.com/doc/refman/5.0/en/mysql.html
You can use the following type of format for commands
mysql db_name < script.sql > output.tab
or
shell> mysql --user=user_name --password=your_password db_name
Then type an SQL statement, end it with “;”, \g, or \G and press Enter.
practical example of @devarts recommendation enter your user & password & Database