C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin>mysql -h localhost -u
ot phone < D:\phone.DMP;
mysql  Ver 14.14 Distrib 5.5.15, for Win32 (x86)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reseOracle is a registered trade of Oracle Corporation and/or its
affiliates. Other names may be trades of their respective
owners.Usage: mysql [OPTIONS] [database]
  -?, --help          Display this help and exit.
  -I, --help          Synonym for -?
  --auto-rehash       Enable automatic rehashing. One doesn't need to u
                      'rehash' to get table and field completion, but s
                      and reconnecting may take a longer time. Disable
                      --disable-auto-rehash.
                      (Defaults to on; use --skip-auto-rehash to disabl
  -A, --no-auto-rehash
                      No automatic rehashing. One has to use 'rehash' t
                      table and field completion. This gives a quicker
                      mysql and disables rehashing on reconnect.
  --auto-vertical-output
                      Automatically switch to vertical output mode if t
                      result is wider than the terminal width.
  -B, --batch         Don't use history file. Disable interactive behav
                      (Enables --silent.)
  --character-sets-dir=name
                      Directory for character set files.
  --column-type-info  Display column type information.
  -c, --comments      Preserve comments. Send comments to the server. T
                      default is --skip-comments (discard comments), en
                      with --comments.
  -C, --compress      Use compression in server/client protocol.
  
 
  Default options are read from the following files in the given order:
C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf C:\Program File
ySQL\MySQL Server 5.5\my.ini C:\Program Files (x86)\MySQL\MySQL Server
f
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
--no-defaults           Don't read default options from any option file
--defaults-file=#       Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read.Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)
--------------------------------- -------------------------------------
auto-rehash                       TRUE
auto-vertical-output              FALSE
character-sets-dir                (No default value)
column-type-info                  FALSE
comments                          FALSE
compress                          FALSE
debug-check                       FALSE
debug-info                        FALSE
database                          (No default value)
default-character-set             latin1
delimiter                         ;
vertical                          FALSE
force                             FALSE
named-commands                    FALSE
ignore-spaces                     FALSE
init-command                      (No default value)
local-infile                      FALSE
no-beep                           FALSE
host                              localhost
html                              FALSE
xml                               FALSE
line-numbers                      TRUE
unbuffered                        FALSE
column-names                      TRUE
sigint-ignore                     FALSE
port                              3306
prompt                            mysql>
C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin>这是成功还是没成功?

解决方案 »

  1.   

    没有成功,DMP是ORACLE的?如果是,不能直接导入
      

  2.   

    D:\phone.DMP 这个文件是如何生成的?  select ... INTO DUMPFILE  生成的? 还是mysqldump 或者什么其它方法?
      

  3.   

    怎样出来的不清楚  是不是oracle的也不清楚 如果是oracle的能不能导入?
      

  4.   

    如果是oracle的  那怎么导入?dmp是不是只有oracle能导出这种格式?
      

  5.   

    你用编辑软件打开看看内容,比如记事本、写字板、WORD之类的
      

  6.   

    内容是这些   还有乱码
    TEXPORT:V09.02.00
    UBILL_CENTER
    RTABLES
    2048
    0
    20
    0
    TT?                                          星期五 8月 17 17:5:1 2012phone.DMP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       d    `$  
     
    #G###A? ?T?                                     d    `$  
     
    #G###A? ?TT                                      -07:00   BYTE  INTERPRETED
    TABLE "PHONENUM_ID_PROVINCE_NEW"
    CREATE TABLE "PHONENUM_ID_PROVINCE_NEW" ("PHONENUM" VARCHAR2(20) NOT NULL ENABLE, "CITYNAME" CHAR(20), "PROVINCENAME" CHAR(40))  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "BILL_CENTER" LOGGING NOCOMPRESS
    INSERT INTO "PHONENUM_ID_PROVINCE_NEW" ("PHONENUM", "CITYNAME", "PROVINCENAME") VALUES (:1, :2, :3)
       T `  T ` ( T      1560214 天津                ( 天津                                       1560215 天津                ( 天津                                       1560216 天津                ( 天津                                       1560217 天津                ( 天津                                       1560218 天津                ( 天津                                       1560219 天津                ( 天津                                       1560220 广州                ( 广东                                       1560221 广州                ( 广东                                       1560222 广州                ( 广东                                       1560223 广州                ( 广东                                       1560224 广州                ( 广东                                       1560225 广州                ( 广东                                       1560226 广州                ( 广东                                       1560227 广州                ( 广东                                       1560228 广州                ( 广东                                       1560229 广州                ( 广东                                       1560230 广州                ( 广东                                       1560231 深圳                ( 广东                                       1560232 广州                ( 广东                                       1560233 广州                ( 广东                                       1560234 韶关                ( 广东                                       1560235 清远                ( 广东                                       1560236 肇庆                ( 广东                                       1560237 云浮                ( 广东                                       1560238 广州                ( 广东                                       1560239 广州                ( 广东                                       1560240 广州                ( 广东                                       1560241 佛山                ( 广东                                       1534771 崇左                ( 广西                                       1534772 来宾                ( 广西                                       1534931 兰州                ( 甘肃                                       1534932 定西                ( 甘肃                                       1534933 平凉                ( 甘肃                                       1534934 庆阳                ( 甘肃                                       1534935 武威(金昌)          ( 甘肃                                       1560242 佛山                ( 广东                                       1560243 深圳                ( 广东                                       1560244 深圳                ( 广东                                       1560245 深圳                ( 广东                                       1560246 深圳                ( 广东                                       1560247 深圳                ( 广东                                       1560248 深圳                ( 广东                                       1560249 广州                ( 广东                                       1560250 湛江                ( 广东                                       1560251 茂名                ( 广东                                       1560252 阳江                ( 广东                                       1560253 珠海                ( 广东                                       1560254 茂名                ( 广东                                       1560255 江门                ( 广东                                       1560256 佛山                ( 广东                                       1560257 湛江                ( 广东                                       1560258 江门                ( 广东                                       1560259 中山                ( 广东                                       1560260 东莞                ( 广东                                       1560261 东莞                ( 广东                                       1560262 惠州           
      

  7.   

    这是ORACLE的,你只能自行修改它的 create table 语句,然后执行。
      

  8.   

    这是ORACLE的,你只能自行修改它的 create table 语句,然后执行。
      

  9.   

    不能用编辑器直接打开的是oracle dmp文件。用oracle工具转化一下就可以了。
      

  10.   

    不能用编辑器直接打开的是oracle dmp文件。用oracle工具转化一下就可以了。
      

  11.   

    不能用编辑器直接打开的是oracle dmp文件。用oracle工具转化一下就可以了。
      

  12.   

    use ??;(回车)
    source ??;(你的dmp的url)