当前位置:网站首页>Modify MySQL group error expression 1 of select list is not in group
Modify MySQL group error expression 1 of select list is not in group
2022-07-25 10:32:00 【colours starry sky】
Method 1 :
1、 Through the bottom SQL Statement query :
SELECT @@sql_mode;
2、 See if it exists ONLY_FULL_GROUP_BY Field ?
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
3、 If there is a field above , Use below SQL sentence :
set @@global.sql_mode
=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’;
Method 2 :
stay mysql Create two files in the figure under the installation directory of 
**
my.ini The contents of the document :
**
# This database does not my.ini file , The current document is added later
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_bin
init_connect=‘SET NAMES utf8mb4’
Remove leading # and set to the amount of RAM for the most important data
cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 128M
Remove leading # to turn on a very important data integrity option: logging
changes to the binary log between backups.
log_bin
These are commonly set, remove the # and set as required.
# This parameter specifies the installation MySQL Installation path for , Filling in the full path can solve the problems caused by the relative path .
basedir = D:/Program Files/mysql-5.7.23-winx64
# This parameter specifies MySQL Where to put your database files . Database file is what we often call MySQL data file .
datadir = D:/Program Files/mysql-5.7.23-winx64/data
port = 3306
server_id = …
Remove leading # to set options mainly useful for reporting servers.
The server defaults are faster for transactions and fast SELECTs.
Adjust sizes as needed, experiment to find the optimal values.
join_buffer_size = 128M
sort_buffer_size = 16M
read_rnd_buffer_size = 16M
# Define what should be supported sql grammar , Check the data and so on
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
max_allowed_packet=300M
my-default.ini The contents of the document :
[mysqld]
character-set-server=utf8mb4
[mysql]
default-character-set=utf8mb4
sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
[mysql]
Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port
port = 3306
Set up mysql Installation directory
basedir=D:\Program Files\mysql-5.7.23-winx64
Maximum connections allowed
max_connections=200
The character set used by the server defaults to 8 Bit coded latin1 Character set
character-set-server=utf8
The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
边栏推荐
- Angr (IX) -- angr_ ctf
- Supervisor deployment (offline deployment requires downloading the deployment package in advance)
- Vscode latex workshop set xelatex compilation
- mongoDB的使用
- 虚拟专线网络部署
- Multithreading -- callable interface, lambda
- Vs Code connects to the remote jupyter server
- 存储、计算、分布式存储篇(收集整理适合小白)
- 3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序
- Input stream in io stream
猜你喜欢

Angr (IV) -- angr_ ctf

Angr (IX) -- angr_ ctf

11. Iptables firewall

Angr(九)——angr_ctf

Duplicate SSL_ Anti spoofing, spoofing attacks and deep forgery detection using wav2vec 2.0 and data enhanced automatic speaker authentication

5. This simple "echo" usage, can the child next door!

After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found

Angr (III) - angr_ ctf

Voxceleb1 dataset Download

Angr (VI) -- angr_ ctf
随机推荐
Supervisor部署(离线部署需要提前下载部署包)
微信小程序WxPrase中包含文件无法点击解决
Erlang(离线部署)
DHCP configuration (take Huawei ENSP as an example)
Angr(四)——angr_ctf
Angr(七)——angr_ctf
3、 Five operation modes of unittest test cases
5. NFS shared services and SSH Remote Control Services
PyTorch 代码模板 (CNN)
一、unittest框架和pytest框架的区别
21. Merge Two Sorted Lists
Pytorch code template (CNN)
Multithreading - static proxy mode
2.shell脚本之条件语句
Fastdfs离线部署(图文)
4. FTP service configuration and principle
for循环:水仙花案例
存储、计算、分布式计算篇(收集整理适合小白)
Swing component Icon
Principle of struct2