我嘗試使用INTO OUTFILE,但無法發現Google在使用Google App Engine時實際上禁止了此操作。我試圖導出大量的數據,並希望只使用csv來組織它。尋找另一個建議,因爲我還在學習,並試圖搜索如何使用MySQL導出只返回下面的選項。使用PHP Google App Engine時無法使用INTO OUTFILE
Google的常見問題只是讓每個人都可以看到他們不允許
https://developers.google.com/cloud-sql/faq
Unsupported MySQL statements:
Sending any of the following types of SQL statements will generate an error with the
message "Error 1290: The MySQL server is running with the google option so it cannot
execute this statement"
LOAD DATA INFILE
SELECT ... INTO OUTFILE
SELECT ... INTO DUMPFILE
INSTALL PLUGIN ...
UNINSTALL PLUGIN
CREATE FUNCTION ... SONAME ...
承蒙社會各界一如既往的不可能得到這麼遠沒有你。
在AppEngine的PHP中,您可以通過將它們寫入到php:// temp /例如:file_put_contents(「php:// temp/my-file」,$ mydata)來創建臨時內存文件。 – IanGSY
警告: file_put_contents(test.txt):無法打開流:/base/data/home/apps/s~emerald-pipe-385/dev.373121059283953780/moreinformation.php上的只讀文件系統第4行不幸的是,也沒有工作。 – ZeroAccess