Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

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

Category: Security

Limit MySQL user access on any VPS—log in with mysql -u root -p create a user with CREATE USER 'app'@'localhost' IDENTIFIED BY 'Passw0rd!'; and grant specific rights like GRANT SELECT INSERT ON mydb * TO 'app'@'localhost'; Check with SHOW GRANTS FOR 'app'@'localhost';—expect restricted privileges Prevents over-privileged accounts from compromising your DB

Back to All Tips