2017-06-05 15 views
-1

我想將一個XMl文件導入到phpmyadmin中。XML到phpmyadmin

我有75000行,以便將單獨的值的XML文件是一個巨大的沒有,當我嘗試將文件導入爲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格式導出表格來查看確切的格式。您需要以編程方式修改現有文件以適應支持的格式。