mysql craahed tarting today, and it keeps down. what I get if I want to restar mysql service
systemctl restart mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
my error log
2020-10-19T09:10:14.068125Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.21) starting as process 320061 2020-10-19T09:10:14.088157Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2020-10-19T09:10:14.145172Z 0 [ERROR] [MY-012681] [InnoDB] mmap(137363456 bytes) failed; errno 12 2020-10-19T09:10:14.145376Z 1 [ERROR] [MY-012956] [InnoDB] Cannot allocate memory for the buffer pool 2020-10-19T09:10:14.145460Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2020-10-19T09:10:14.145573Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2020-10-19T09:10:14.145831Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2020-10-19T09:10:14.145973Z 0 [ERROR] [MY-010119] [Server] Aborting 2020-10-19T09:10:14.146611Z 0 [System] [MY-010910] [Server] /usr/libexec/mysqld: Shutdown complete (mysqld 8.0.21) Source distribution.
journalctl -xe Oct 19 09:11:03 centos-s-1vcpu-1gb-sgp1-01 sshd: Invalid user 111111 from 220.127.116.11 port 32742 Oct 19 09:11:03 centos-s-1vcpu-1gb-sgp1-01 sshd: pam_unix(sshd:auth): check pass; user unknown Oct 19 09:11:03 centos-s-1vcpu-1gb-sgp1-01 sshd: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=18.104.22.168 Oct 19 09:11:05 centos-s-1vcpu-1gb-sgp1-01 sshd: Failed password for invalid user 111111 from 22.214.171.124 port 32742 ssh2 Oct 19 09:11:06 centos-s-1vcpu-1gb-sgp1-01 sshd: pam_unix(sshd:auth): check pass; user unknown Oct 19 09:11:08 centos-s-1vcpu-1gb-sgp1-01 sshd: Failed password for invalid user 111111 from 126.96.36.199 port 32742 ssh2 Oct 19 09:11:09 centos-s-1vcpu-1gb-sgp1-01 sshd: Disconnecting invalid user 111111 188.8.131.52 port 32742: Change of username or service not allowed: (111111,ssh-connection) -> (admin,ssh-connectio> Oct 19 09:11:09 centos-s-1vcpu-1gb-sgp1-01 sshd: PAM 1 more authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=184.108.40.206
from the error log looks like a memory issue so i run free -mh command
free -mh total used free shared buff/cache available Mem: 818Mi 296Mi 291Mi 101Mi 230Mi 297Mi Swap: 0B 0B 0B
I used of 296m but i cache 230m i should supposed to have decent amount of memory I can used am I right ? https://www.digitalocean.com/community/questions/out-of-memory-is-it-possible
from the answer of this post , this is the what he said
To expand on the “used” RAM above, simply because I’ve “used” 1.9GB out of the 2GB I’ve been allocated does not mean that I’ve used that much. The 1.6GB’s from the cache column is included in that 1.9GB’s, so my actual usage is only ~300MB. The other 1.3GB is cached and used by current processes until they are either stopped, killed or restarted
but once i take a close look at journalctl -xe log , there is a user 111111 trying to login with wrong password ??
Failed password for invalid user 111111 from 220.127.116.11 port 32742 ssh2
I dont know if this is actually a memory problem or another issues ?? hopefully someone have infra knowledge can advise me on this .thanks now all of my site is down , I am using the cheapest droplet instance. which have 1G memory. btw , I am using centos8 nginx, php , mysql stack.thanks again.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!