F5F Stay Refreshed Software Operating Systems Optimize MySQL performance on Linux systems.

Optimize MySQL performance on Linux systems.

Optimize MySQL performance on Linux systems.

R
Rounyx
Posting Freak
838
09-20-2016, 01:19 PM
#1
Not long ago I set up MySQL with phpMyAdmin (MariaDB) and it’s becoming very sluggish. I’m not a big fan of MySQL, but I need to use it. The database size is around 1GB on Ubuntu 20.04, and I haven’t adjusted any settings. It’s taking a long time to load and can’t handle many writes at once.
R
Rounyx
09-20-2016, 01:19 PM #1

Not long ago I set up MySQL with phpMyAdmin (MariaDB) and it’s becoming very sluggish. I’m not a big fan of MySQL, but I need to use it. The database size is around 1GB on Ubuntu 20.04, and I haven’t adjusted any settings. It’s taking a long time to load and can’t handle many writes at once.

L
LuckyLuc97
Junior Member
35
09-27-2016, 01:06 PM
#2
Adjust table structures with appropriate primary keys and indexes. Ensure InnoDB buffers are sufficient for your MySQL configuration. Verify memory limits and transaction log sizes in the config file. Prefer InnoDB for most read operations; consider MyISAM only for infrequently modified tables. Use utf8mb4 when handling Unicode data. Analyze slow queries with EXPLAIN or the official analysis tool.
L
LuckyLuc97
09-27-2016, 01:06 PM #2

Adjust table structures with appropriate primary keys and indexes. Ensure InnoDB buffers are sufficient for your MySQL configuration. Verify memory limits and transaction log sizes in the config file. Prefer InnoDB for most read operations; consider MyISAM only for infrequently modified tables. Use utf8mb4 when handling Unicode data. Analyze slow queries with EXPLAIN or the official analysis tool.

B
berke1010
Member
147
09-28-2016, 05:05 AM
#3
There isn't any mention of RAM in your my.conf file.
B
berke1010
09-28-2016, 05:05 AM #3

There isn't any mention of RAM in your my.conf file.

B
Blakem16
Member
154
09-28-2016, 06:24 AM
#4
Databases supports utf8mb4_general_cli mode
B
Blakem16
09-28-2016, 06:24 AM #4

Databases supports utf8mb4_general_cli mode

T
TheBozoPlays
Senior Member
642
09-28-2016, 07:19 AM
#5
It's referred to as my.cnf. This document outlines available commands in my.cnf: https://getmoven.com/index.php/knowledge...-File.html. Be aware that the settings might not suit your needs, so don't simply copy and paste without understanding their purpose. Focus on parameters like connection limits, memory usage for tables, temporary storage size, sorting options, and RAM allocation—make sure maximum RAM usage is practical for your server's capacity.
T
TheBozoPlays
09-28-2016, 07:19 AM #5

It's referred to as my.cnf. This document outlines available commands in my.cnf: https://getmoven.com/index.php/knowledge...-File.html. Be aware that the settings might not suit your needs, so don't simply copy and paste without understanding their purpose. Focus on parameters like connection limits, memory usage for tables, temporary storage size, sorting options, and RAM allocation—make sure maximum RAM usage is practical for your server's capacity.

I
IMS209
Member
63
09-29-2016, 03:04 AM
#6
Your server is close to 1GB in size.
I
IMS209
09-29-2016, 03:04 AM #6

Your server is close to 1GB in size.

I
isakclausen
Member
65
09-29-2016, 04:55 AM
#7
Collation details explain what you're seeing. The character set uses UTF8MB4, which supports a wide range of characters and handles things like trailing spaces better than older formats. MariaDB offers collations such as nopad for special cases, like preserving spaces. This article covers recommended settings and updates, especially with new Unicode versions.
I
isakclausen
09-29-2016, 04:55 AM #7

Collation details explain what you're seeing. The character set uses UTF8MB4, which supports a wide range of characters and handles things like trailing spaces better than older formats. MariaDB offers collations such as nopad for special cases, like preserving spaces. This article covers recommended settings and updates, especially with new Unicode versions.

L
louie250r
Junior Member
16
09-29-2016, 05:49 AM
#8
Boost working memory capacity, not sure about MySQL, but PostgreSQL offers strong performance with just around 8MB. This alone should significantly improve speed.
L
louie250r
09-29-2016, 05:49 AM #8

Boost working memory capacity, not sure about MySQL, but PostgreSQL offers strong performance with just around 8MB. This alone should significantly improve speed.