当前位置:网站首页>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(二)——angr_ctf
- Set up lnmp+discuz Forum
- Ansible部署指南
- MySQL solves the problem of not supporting Chinese
- Dynamic planning, shopping list problem
- shortest-unsorted-continuous-subarray
- 4. FTP service configuration and principle
- Several common network diagnostic commands
- JS encryption parameter positioning
- Pytorch 通过 Tensor 某一维的值将 Tensor 分开的方法(简易)
猜你喜欢

FRP reverse proxy deployment
Notes on building dompteur container

Vs Code connects to the remote jupyter server

Erlang (offline deployment)

Pytorch code template (CNN)

11. Iptables firewall

Supervisor部署(离线部署需要提前下载部署包)

Attention is all you need paper intensive reading notes transformer

Set up lnmp+discuz Forum

MySQL offline deployment
随机推荐
Virtual private line network deployment
10. Expect interaction free
String longest common prefix
Array static initialization, traversal, maximum value
[untitled]
测试基本概念
Multithreading -- callable interface, lambda
Angr (VII) -- angr_ ctf
Software test notes, test case design
Fastdfs离线部署(图文)
Detailed explanation of chrome developer tools
Angr(六)——angr_ctf
Deadlock event of thread pool
Angr (VI) -- angr_ ctf
8.shell文件处理三剑客之sed
7. Shell practical gadget cut, etc
When installing mysql, string the service installation failure > mysql80 startup failure
Pytorch tensor list is converted to tensor list of tensor to tensor using torch.stack()
CONDA configures the deep learning environment pytorch transformers
Duplicate SSL_ Anti spoofing, spoofing attacks and deep forgery detection using wav2vec 2.0 and data enhanced automatic speaker authentication