久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='qgYHI'></bdo><ul id='qgYHI'></ul>
    <legend id='qgYHI'><style id='qgYHI'><dir id='qgYHI'><q id='qgYHI'></q></dir></style></legend>

    <i id='qgYHI'><tr id='qgYHI'><dt id='qgYHI'><q id='qgYHI'><span id='qgYHI'><b id='qgYHI'><form id='qgYHI'><ins id='qgYHI'></ins><ul id='qgYHI'></ul><sub id='qgYHI'></sub></form><legend id='qgYHI'></legend><bdo id='qgYHI'><pre id='qgYHI'><center id='qgYHI'></center></pre></bdo></b><th id='qgYHI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qgYHI'><tfoot id='qgYHI'></tfoot><dl id='qgYHI'><fieldset id='qgYHI'></fieldset></dl></div>

    1. <small id='qgYHI'></small><noframes id='qgYHI'>

      <tfoot id='qgYHI'></tfoot>

      1. 在 MySQL 中找不到 outfile 創建的文件

        Can#39;t find the file created by outfile in MySQL(在 MySQL 中找不到 outfile 創建的文件)

        <small id='5s0bz'></small><noframes id='5s0bz'>

            <legend id='5s0bz'><style id='5s0bz'><dir id='5s0bz'><q id='5s0bz'></q></dir></style></legend><tfoot id='5s0bz'></tfoot>
            • <bdo id='5s0bz'></bdo><ul id='5s0bz'></ul>
              <i id='5s0bz'><tr id='5s0bz'><dt id='5s0bz'><q id='5s0bz'><span id='5s0bz'><b id='5s0bz'><form id='5s0bz'><ins id='5s0bz'></ins><ul id='5s0bz'></ul><sub id='5s0bz'></sub></form><legend id='5s0bz'></legend><bdo id='5s0bz'><pre id='5s0bz'><center id='5s0bz'></center></pre></bdo></b><th id='5s0bz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5s0bz'><tfoot id='5s0bz'></tfoot><dl id='5s0bz'><fieldset id='5s0bz'></fieldset></dl></div>

                <tbody id='5s0bz'></tbody>

                  本文介紹了在 MySQL 中找不到 outfile 創建的文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用以下查詢來創建 CSV 文件

                  I am using the following query to create a CSV file

                  SELECT email INTO OUTFILE "mydata.csv"
                  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
                  LINES TERMINATED BY "
                  "
                  FROM users;
                  

                  但是當我搜索 filezilla 時,我無法在任何地方找到 mydata.csv 文件.

                  But i am unable to find the mydata.csv file anywhere when i am searching through filezilla.

                  知道這個文件的存儲位置嗎?

                  Any idea where this file is getting stored?

                  查詢運行成功,沒有任何錯誤!有什么幫助嗎?

                  The query runs successfully without any errors! Any Help?

                  推薦答案

                  MySQL 可能正在將文件寫入自己的數據目錄,例如 /var/lib/mysql/.要指定路徑,請使用完整路徑.

                  MySQL may be writing the file into its own data directory, like /var/lib/mysql/<databasename> for example. To specify the path, use a full path.

                  但是,它必須是運行 MySQL 服務器守護程序的用戶帳戶可寫的目錄.出于這個原因,我會經常使用 /tmp:

                  However, it must be a directory that is writable by the user account the MySQL server daemon is running under. For that reason, I'll often use /tmp:

                  指定要寫入的路徑,如下所示:

                  Specify the path you want to write to as in:

                  INTO OUTFILE '/tmp/mydata.csv'
                  

                  請注意,MySQL 會將文件寫入 MySQL 服務器,而不是您的客戶端計算機上.因此遠程連接將在遠程服務器上創建輸出文件.另請參閱SELECT INTO OUTFILE local ?了解更多詳情和解決方法.

                  And note that MySQL will write the file on the MySQL server, not on your client machine. Therefore remote connections will create output files on the remote server. See also SELECT INTO OUTFILE local ? for more details and workarounds.

                  關于在運行 systemd 的 Linux 系統上寫入 /tmp 的注意事項:

                  最初發布此內容幾年后,我發現自己無法通過

                  Some years after originally posting this, I found myself unable to locate a file written to /tmp via

                  ...INTO OUTFILE '/tmp/outfile.csv'
                  

                  在運行 Fedora Linux 和 systemd 的 MariaDB 5.5 服務器上.不是將文件直接寫入指定的 /tmp/outfile.csv,而是在 /tmp 中的 systemd 目錄下創建該目錄和文件:

                  on a MariaDB 5.5 server running Fedora Linux with systemd. Instead of writing the file directly to /tmp/outfile.csv as specified, that directory and file were created beneath a systemd directory in /tmp:

                  /tmp/systemd-mariadb.service-XXXXXXX/tmp/outfile.csv
                  

                  雖然文件 outfile.csv 本身和 tmp/ 子目錄都是可寫的,但 systemd 服務目錄本身有 700 個權限并且是 root 擁有的,需要 sudo 訪問權限以檢索其中的文件.

                  While the file outfile.csv itself and the tmp/ subdirectory were both created world-writable, the systemd service directory itself has 700 permissions and is root-owned, requiring sudo access to retrieve the file within it.

                  不是將 MariaDB 中的絕對路徑指定為 /tmp/outfile.csv 并將其相對指定為 outfile.csv,而是按預期將文件寫入 MariaDB 的數據中當前所選數據庫的目錄.

                  Rather than specifying the absolute path in MariaDB as /tmp/outfile.csv and specifying it relatively as outfile.csv, the file was written as expected into MariaDB's data directory for the currently selected database.

                  這篇關于在 MySQL 中找不到 outfile 創建的文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                    1. <tfoot id='aiVEb'></tfoot>
                      <legend id='aiVEb'><style id='aiVEb'><dir id='aiVEb'><q id='aiVEb'></q></dir></style></legend>

                      1. <i id='aiVEb'><tr id='aiVEb'><dt id='aiVEb'><q id='aiVEb'><span id='aiVEb'><b id='aiVEb'><form id='aiVEb'><ins id='aiVEb'></ins><ul id='aiVEb'></ul><sub id='aiVEb'></sub></form><legend id='aiVEb'></legend><bdo id='aiVEb'><pre id='aiVEb'><center id='aiVEb'></center></pre></bdo></b><th id='aiVEb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='aiVEb'><tfoot id='aiVEb'></tfoot><dl id='aiVEb'><fieldset id='aiVEb'></fieldset></dl></div>

                          <bdo id='aiVEb'></bdo><ul id='aiVEb'></ul>
                              <tbody id='aiVEb'></tbody>

                            <small id='aiVEb'></small><noframes id='aiVEb'>

                          • 主站蜘蛛池模板: 国产毛片视频 | 日韩欧美电影在线 | 精品美女 | 精品久久久久久久久久久久 | 欧美一区两区 | 亚洲精品www.| 老外几下就让我高潮了 | 久久av一区二区 | 精品国产网 | 超碰欧美 | 国产精品亚洲视频 | 日本在线观看视频 | 国产亚洲一区二区精品 | 国产精品久久欧美久久一区 | 性在线| 激情一区二区三区 | 中文无码日韩欧 | 国产91精品在线 | 国产精品久久久久久久久久 | 精品一区二区在线视频 | 国产综合久久 | 亚洲视频在线播放 | 欧美综合一区二区三区 | 黄色一级电影在线观看 | 免费在线黄 | 国产亚洲精品久久19p | 久久久精品久久久 | 天天插天天搞 | 午夜精品一区二区三区在线视频 | 国产一区中文字幕 | 紧缚调教一区二区三区视频 | 欧美电影一区 | 免费的网站www | 久久久久久久久久久久久九 | 久久久精 | 一区二区三区四区国产 | 亚洲喷水 | 日韩欧美亚洲 | 国产粉嫩尤物极品99综合精品 | 欧美久久一级特黄毛片 | 亚洲精品久久嫩草网站秘色 |