Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 如何在Xampp上使用MariaDB将XML文件转换为行和列?_Mysql_Sql_Xml_Xampp_Mariadb - Fatal编程技术网

Mysql 如何在Xampp上使用MariaDB将XML文件转换为行和列?

Mysql 如何在Xampp上使用MariaDB将XML文件转换为行和列?,mysql,sql,xml,xampp,mariadb,Mysql,Sql,Xml,Xampp,Mariadb,我有一个如下所示的XML文件: <users> <row Id="4" Reputation="27228" CreationDate="2008-07-31T14:22:31.317" DisplayName="abc" LastAccessDate="2017-8:19:58.113" WebsiteUrl="http://www.joeware.com/" Location="Nerk, NY" AboutMe="&lt;p&gt;I am:

我有一个如下所示的XML文件:

<users>

<row Id="4" Reputation="27228" CreationDate="2008-07-31T14:22:31.317" 
DisplayName="abc" 
LastAccessDate="2017-8:19:58.113" 

WebsiteUrl="http://www.joeware.com/" Location="Nerk, NY" 

AboutMe="&lt;p&gt;I am:&lt;/p&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the co-    
founof &lt;a href=&quot;http://om&quot;&gt;Stack 
Ext;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;the  of &lt;a 
href=&quot;http://wwwkot; rel=&quot;nofollow&quot;&gt;Fog 
Slt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;the creatorrman 
of the board of &lt;a href=&quot;http://trello.com&quot; 
rel=&quot;nofollow&quot;&gt;Trello&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;owner 
of Taco, the most f Husky on the UWest       
Side.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;p&gt;You can find me on 
Twitter (as &lt;a href=&quot;http://twitlsky&quot; 
rel=&quot;nofollow&quot;&gt;@sky&lt;/a&gt;) or on my rarely-updated 
blog, &lt;a href=&quot;http://joecom&quot; 
rel=&quot;nofollow&quot;&gt;Software&lt;/a&gt;.&lt;/p&gt;&#xA;" 

Views="69136" UpVotes="785" DownVotes="96" 

ProfileImageUrl="https://i.stam/C5gBG.jpg?s=128&amp;g=1" 
AccountId="4" />

</users>


我无法重现这个问题

参见测试:

文件:
/path/to/File.xml



可能是32位对64位的问题。我在32位系统上,通过Xampp运行MariaDB。我重复了您执行的步骤,但仍然遇到相同的错误。
 LOAD XML LOCAL INFILE '<path>.xml'
-> INTO TABLE mytbl(id, rep, c_date, D_name,...);
MariaDB [_]> SHOW VARIABLES WHERE `Variable_name` = 'local_infile';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| local_infile  | ON    |
+---------------+-------+
1 row in set (0.01 sec)