<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 6, 2023 at 11:32 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 6 Jun 2023 10:47:45 -0400, you wrote:<br>
<br>
><br>
>> <br>
>> The results are the same for mariadb.  The database query stuff seems to be working, it's something related to the filelist.txt getting created correctly.<br>
>> <br>
><br>
><br>
>The underlying problem is that evidently MariaDB doesn’t allow an external file to be created the same as mysql. Since the queryres  file is no longer created, nothing else happens.<br>
><br>
><br>
>I am converting to python so that the returned data from the query is in a data array and then parsing the data array instead of from a input file.<br>
><br>
> Jay<br>
<br>
<br>
In MariaDB if you are exporting data to a file the secure_file_priv<br>
variable (if set) limits the location you can save to.  So check to<br>
see if it is set:<br>
<br>
SHOW VARIABLES LIKE "secure_file_priv";<br>
<br>
Only if it is an empty string can you store the file anywhere you<br>
like.<br>
<br></blockquote><div><br></div><div>Interesting! I did:</div><div> <span style="font-family:monospace;font-weight:bold;color:rgb(84,255,84)">mythtv@ubuntu-mythtv</span><span style="font-family:monospace;color:rgb(0,0,0)">:</span><span style="font-family:monospace;font-weight:bold;color:rgb(84,84,255)">~</span><span style="font-family:monospace;color:rgb(0,0,0)">$ sudo mysql -uroot -p</span></div><span style="font-family:monospace">[sudo] password for mythtv:  <br>Enter password:  <br><span style="font-weight:bold;color:rgb(0,0,0)">Welcome to the MariaDB monitor.  Commands end with ; or \g.</span><span style="color:rgb(0,0,0)">
</span><br><span style="font-weight:bold;color:rgb(0,0,0)">Your MariaDB connection id is 152</span><span style="color:rgb(0,0,0)">
</span><br><span style="font-weight:bold;color:rgb(0,0,0)">Server version: 10.11.2-MariaDB-1 Ubuntu 23.04</span><span style="color:rgb(0,0,0)">
</span><br>
<br><span style="font-weight:bold;color:rgb(0,0,0)">Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.</span><span style="color:rgb(0,0,0)">
</span><br>
<br><span style="font-weight:bold;color:rgb(0,0,0)">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</span><span style="color:rgb(0,0,0)">
</span><br>
<br>MariaDB [(none)]> use mythconverg;
<br>Reading table information for completion of table and column names
<br>You can turn off this feature to get a quicker startup with -A
<br>
<br><span style="font-weight:bold;color:rgb(0,0,0)">Database changed</span><span style="color:rgb(0,0,0)">
</span><br>MariaDB [mythconverg]> SHOW VARIABLES LIKE "secure_file_priv";
<br>+------------------+-------+
<br>| Variable_name    | Value |
<br>+------------------+-------+
<br>| secure_file_priv |       |
<br>+------------------+-------+
<br><span style="font-weight:bold;color:rgb(0,0,0)">1 row in set (0.001 sec)</span><br><span style="color:rgb(0,0,0)">
</span><br></span></div><div class="gmail_quote">Looks empty to me.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Jim A</div><div class="gmail_quote"><br></div></div>