小编Ash*_*sha的帖子

mysql:[错误]未知变量'sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE

当我尝试从命令行登录 mySql 时,出现mysql: [ERROR] unknown variable 'sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' <username>@<username>-错误

我应该如何在不登录 MySQL 的情况下解决这个问题?

mysql

6
推荐指数
1
解决办法
9865
查看次数

如何解决PHPSpread工作表未找到错误

我正在尝试使用 PHP 创建 Excel 工作表。当我从本地主机调用 API 时,它给了我

Fatal error: Uncaught Error: Class 'vendor\PhpOffice\PhpSpreadsheet\Spreadsheet' not found in /var/www/html/sti/svr/excel/sheet.php:8 Stack trace: #0 {main} thrown in /var/www/html/sti/svr/excel/sheet.php on line 8` error.
Run Code Online (Sandbox Code Playgroud)

这是我的文件:

<?php

// require_once('vendor/autoload.php'); 
use vendor\PhpOffice\PhpSpreadsheet\Spreadsheet;
use vendor\PhpOffice\PhpSpreadsheet\Writer\Xlsx;

// Creates New Spreadsheet 
$spreadsheet = new Spreadsheet();

// Retrieve the current active worksheet 
$sheet = $spreadsheet->getActiveSheet();

// Set the value of cell A1 
$sheet->setCellValue('A1', 'GeeksForGeeks!');

// Sets the value of cell B1 
$sheet->setCellValue('B1', 'A Computer Science Portal For Geeks');

// Write an .xlsx …
Run Code Online (Sandbox Code Playgroud)

php excel google-sheets google-apps-script

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

excel ×1

google-apps-script ×1

google-sheets ×1

mysql ×1

php ×1