mysql常用命令:
1.shell> mysql -h host -u user -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 459 to server version: 3.22.20a-log
Type 'help' for help.
mysql>
2.在你成功地連接后,你可以在mysql>提示下打入QUIT隨時(shí)斷開:
mysql> QUIT
Bye
你也可以鍵入control-D斷開。
3.本機(jī)直接導(dǎo)入數(shù)據(jù):
在DOS下打入命令:
D:\>mysql -p databasename<*.sql
回車后輸入密碼就可以了
4.mysqld dbname < *.sql -uusername -ppassword
用sql文件導(dǎo)入數(shù)據(jù)