Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Use mysqladmin—a DB tool—in a Bash script on a Rocky Linux VPS—script:
#!/bin/bash\nmysqladmin -u root -p version | grep Uptime > mysql_uptime.log
On DigitalOcean run:
./uptime.sh
—expect uptime Monitors hosting DB availability

Back to All Tips