大家好!
       我在linux下用  mysql -u用户名 -p 数据库名 < 数据库名.sql  命令导入文件
       每次输完命令后出现下面一堆东西,数据库还是空的。不知是啥问题。希望大侠们指点一二。
For information about MySQL products and services, visit:
   http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:
   http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other products, visit:
   https://shop.mysql.com/List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit      (\e) Edit command with $EDITOR.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
nopager   (\n) Disable pager, print to stdout.
notee     (\t) Don't write into outfile.
pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
system    (\!) Execute a system shell command.
tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.For server side help, type 'help contents'    -> 

解决方案 »

  1.   

    mysql -u用户名 -p 数据库名 < 数据库名.sql  命令导入文件这个是需要的LINUX的SHELL下执行的,不是在mysql>中执行的
      

  2.   

    当您的问题得到解答后请及时结贴.
    http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
    http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
    http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?
    http://community.csdn.net/Help/HelpCenter.htm#结帖
      

  3.   

    没设环境变量吧,去mysql的bin目录下执行
      

  4.   

    你的sql文件是自己写的?
    看下是不是格式错了,需要以;结尾
    另外linux使用的sql文件需要unix文本格式,你的sql如果是在晕到死下做的可能需要用
    dos2unix转换一下格式
      

  5.   

    mysql -h localhost -u name -p datamane < name.sql  应该是这样
      

  6.   

    这是在SHELL 下执行的,不是在MYSQL中执行的