MySQL database using too much RAM

AnonymousTRIAL

2 years ago

I have deployed a mysql database to railway, and it has 2 tables containing 6 columns each, and 1400 rows between them. Now, my usage shows that my database is taking up around 500 MB of RAM. Is there a way to reduce this usage? I have heard that normally, you could reduce mysql database RAM usage by altering the my.cnf file. Is there a way to access this file on railway? My project id is 771eccb2-b435-49de-8930-3a67b05a5bc3

0 Replies

AnonymousTRIAL

2 years ago

How to change the my.cnf file?


AnonymousTRIAL

a year ago

Hey Samin,

to change my.cnf you need to configure your mysql image using a dockerfile

to reduce the costs of your mysql image, I recommend using this start command:
[docker-entrypoint.sh](docker-entrypoint.sh) mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0

or use other db

1219395090364236000


MySQL database using too much RAM - Railway Help Station