2017-06-05 5 views
-1

XMlファイルをphpmyadminにインポートします。XMLからphpmyadmin

私はので、私はそれは次のようなメッセージを与えたデータベースへのXMLとしてファイルをインポートしようとすると、値は、無巨大であり、個別に挿入75000行でXMLファイルを持っている:

Import has been successfully finished, 0 queries executed. 

The following structures have either been created or altered. Here you can: 
View a structure's contents by clicking on its name. 
Change any of its settings by clicking the corresponding "Options" link. 
Edit structure by following the "Structure" link. 

wp_db (Options) 
(xmlfile.xml) 

----------------------------------------------------------------------- 

Notice in ./libraries/plugins/import/ImportXml.php#158 
Undefined index: pma 

Backtrace 

./import.php#652: PMA\libraries\plugins\import\ImportXml->doImport(array) 

phpmyadminのですMAMPの後ろに、xmlファイルのショートバージョンは、次のようになります。

<Report> 
    <Row1> 
     <Reference>123</Reference> 
     <Nature>Outside</Nature> 
     <Disponibility>Full</Disponibility> 
     <State>In progress</State> 
     <Person>Jon</Person> 
     <Seller></Seller> 
    </Row1> 
    <Row2> 
     <Reference>123</Reference> 
     <Nature>Outside</Nature> 
     <Disponibility>Full</Disponibility> 
     <State>In progress</State> 
     <Person>Jon</Person> 
     <Seller></Seller> 
    </Row2> 
</Report> 

それが不可能な場合は、少なくともそれを行うための最も簡単な方法は何ですか? ありがとう!

答えて

0

phpMyAdminは、特別な形式に従う場合にのみXMLをインポートすることができます。 phpMyAdminでXML形式のテーブルをエクスポートすることで、正確なフォーマットを見ることができます。サポートされている形式に適合するように、既存のファイルをプログラムで変更する必要があります。

関連する問題