Time and Date Functions in MySQL
How to work with dates and times in MySQL using functions like NOW(), CURRENT_DATE(), YEAR() and DAYNAME(), plus how to calculate a person’s age.
How to work with dates and times in MySQL using functions like NOW(), CURRENT_DATE(), YEAR() and DAYNAME(), plus how to calculate a person’s age.
A look at popular desktop alternatives to phpMyAdmin for managing MySQL databases, including Workbench, HeidiSQL, DBeaver, Navicat and Sequel Pro.
A roundup of ten MySQL tips and tricks from DevChunks, covering performance, backups, benchmarking, partitioning, security and remote access.
How to remove obsolete privileges and unused accounts in MySQL with DROP USER and an INFORMATION_SCHEMA query that finds grants for missing databases.
How to enable and control remote access in MySQL: edit my.cnf, grant access per host, open TCP port 3306 with iptables, then test the connection.
Practical steps to secure a MySQL server: patch the OS and MySQL, set strong passwords, remove unused accounts and restrict TCP/IP connections.
How tightening up your MySQL schema improves performance: choose correct field sizes, normalise sensibly, then denormalise only where needed.
How table partitioning in MySQL improves performance, the difference between horizontal and vertical partitioning, and an example CREATE TABLE.
How to isolate slow MySQL processes using mysqlreport, the slow query log and mysqlsla so you can find and rewrite your worst performing queries.
How to benchmark a MySQL application using the Benchmark() function and the sql-bench and crash-me scripts to find and fix performance bottlenecks.
How to automate MySQL database backups with the AutoMySQLBackup script, schedule it with cron, and test that your backups actually restore.
How to improve MySQL performance as your data grows, starting with hardware and RAM, then optimising your code, queries and connection use.