I have just installed Percona server 5.7 and have reused the same my.cnf as I did in mysql
Right now I’m importing a sql file with a mysql dump and it is EXTREMELY slow… At least 5-6 times slower than Mysql
What is wrong? I don’t get it because I just reused the same configuration… If there is no easy way to make percona faster I’m about to go back to mysql right away
Hardware:
Intel i7 2600
16GB RAM
Here is my conf
[mysql]
CLIENT
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
GENERAL
user = mysql
default-storage-engine = InnoDB
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
SAFETY
max-allowed-packet = 16M
max-connect-errors = 1000000
skip-name-resolve
sql-mode = STRICT_ALL_TABLES,NO_AUTO_CREATE_USER,NO_AUTO_VALU E_ON_ZERO,NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_B Y,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_ BY_ZERO
sysdate-is-now = 1
symbolic-links = 0
DATA STORAGE
datadir = /var/lib/mysql/
BINARY LOGGING
server-id = 2
log-bin = /var/lib/mysql/mysql-bin
expire-logs-days = 14
sync-binlog = 1
log-bin-trust-function-creators= 1
REPLICATION
log-slave-updates
gtid-mode = ON
enforce-gtid-consistency
CACHES AND LIMITS
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 4096
table-open-cache = 4096
INNODB
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 256M
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table = 1
innodb-buffer-pool-size = 12G
LOGGING
log-error = /var/lib/mysql/mysql-error.log
log-queries-not-using-indexes = 1
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log
basedir = /usr
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
explicit_defaults_for_timestamp