This is a discussion on Some tips of using Mysql Commands in Command Line within the Database Support forums, part of the Web Development category; Hi, Here are some tips of using MYSQL Commands in Command Prompt. Executing Commands from Outside MYSQL in Command Prompt. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Here are some tips of using MYSQL Commands in Command Prompt. Executing Commands from Outside MYSQL in Command Prompt. For Creating Database DB@server:/> mysql -u root -e "DROP DATABASE test1"; For Executing any Queries DB@server:/> mysql -u root -e "SELECT * FROM TABLENAME" dbname; Export the Record set of the Table into XML/HTML DB@server:/> mysql -u root -X -e "SELECT * FROM TABLENAME" dbname; DB@server:/> mysql -u root -H -e "SELECT * FROM TABLENAME" dbname; -X --> Exports the Record set into XML Form. -H --> Exports the Record set into HTML Form. The Output Can be saved to a particular path by specifying the path. DB@server:/> mysql -u root -X -e "SELECT * FROM TABLENAME" dbname > (Destination File Path); DB@server:/> mysql -u root -H -e "SELECT * FROM TABLENAME" dbname > (Destination File Path);
__________________ -Murali.. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I execute a PHP script using command line? | sundarraja | PHP Programming | 0 | 01-28-2008 01:53 AM |
| Using PHP from Command Line | Sabari | PHP Programming | 4 | 12-18-2007 05:42 AM |
| How can we use AT commands in j2me? means how can we pass an AT command one phone to | mobilegeek | J2ME | 1 | 11-10-2007 01:35 AM |
| How do I run a php script from the command line | itbarota | PHP Programming | 1 | 09-11-2007 02:06 AM |
| How do I access command-line arguments? | prasath | C and C++ Programming | 1 | 08-17-2007 10:46 PM |
Our Partners |