我正在运行 MySQL 8.0.11 社区版。我需要在 my.cnf 中设置 sql_mode 以排除 ONLY_FULL_GROUP_BY 以便它重新启动安全。我尝试了以下变体:
sql_mode= STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
sql-mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql-mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Run Code Online (Sandbox Code Playgroud)
无论变量名为“sql_mode”还是“sql-mode”,它们都以相同的方式失败:
mysqld --verbose --help | grep "sql[-_]mode"
2018-06-19T15:22:51.667734Z 0 [ERROR] [MY-011071] [Server] /usr/sbin/mysqld: Error while setting value 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' to 'sql_mode'
--sql-mode=name Syntax: sql-mode=mode[,mode[,mode...]]. See the manual
2018-06-19T15:22:51.675498Z 0 [ERROR] [MY-010119] [Server] Aborting
Run Code Online (Sandbox Code Playgroud)
sql模式
看起来mysqld 处理my.cnf 并将'sql_mode' 或'sql-mode' 转换为'sql_mode',然后它拒绝!
问题是如何解决这个问题?
是否必须执行一些配置设置才能让 Robot Framework (RF) 运行 Gherkin/BDD 风格的测试用例?
我已经在 Windows 7 上安装了 RF 2.8.3,并且在 Selenium2Library 和 DatabaseLibrary 上运行正常。根据用户文档和网络上的其他信息,我应该能够编写和运行 Gherkin 风格的测试。但是,当我这样做时,我会出错。在尝试匹配关键字之前,RF 不会去除 Gherkin 关键字(Given、When、Then、...):
Tests.Group001 GeneralTests
==============================================================================
Scenario: No template operation selected | FAIL |
No keyword with name 'But page does not contain a no template operation selected error message' found.
------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
我使用直截了当的方式运行测试:
pybot ../Tests
Run Code Online (Sandbox Code Playgroud)
我的示例测试文件是:
*** settings ***
Library Selenium2Library
Library DatabaseLibrary
Library kw_common
*** Test Cases ***
Scenario: No template operation selected
Given I have logged in and I …Run Code Online (Sandbox Code Playgroud) 我计划从 MySQL 迁移到 PostgreSQL,因为我想使用 TimescaleDB。
一切看起来都很好,直到我检查了 PostgreSQL (v11.2) 与 MySQL (v5.6) 使用的存储大小相比。对于完全相同的行数 (1,440,000) 和内容:
MySQL 和 PostgreSQL 的数字就像 for like(即包括索引和其他约束),PostgreSQL + TimescaleDB 有向表添加时间戳的开销。有关的表如下所示:
create table cell(
cell_id serial not null
,ts timestamp not null
,parent_id int references parent( parent_id )
,instance_id smallint
,v float
,a float
,t float
,s1 float
,s2 float
,s3 float
,s4 float
,s5 float
,primary key( cell_id )
);
create index ix_cell_pid on cell( parent_id );
create index …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 18.04.1 LTS 上将 SVN 迁移到 Git。我已经安装了 git:
sudo apt-get install git-core
Run Code Online (Sandbox Code Playgroud)
其中似乎不包含 git-svn。我试过:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后:
sudo apt-get install git-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git-svn is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'git-svn' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我也尝试过git-svn 不是 git 命令?:
sudo add-apt-repository ppa:git-core/ppa …Run Code Online (Sandbox Code Playgroud) mysql ×2
data-storage ×1
gherkin ×1
git ×1
mysql-8.0 ×1
postgresql ×1
sql-mode ×1
storage ×1
svn ×1
types ×1