Install MySQL Server
Debian/Ubuntu
Redhat/CentOS
Important Files
Configuration File
/etc/mysql/my.cnf
The Main MySQL Configuration File
Log Files
/var/log/mysql/
Default Log Directory For MySQL /etc/logrotate.d/mysql-server
Log Rotation Policy For MySQL Logs
MySQL Tricks
Reset MySQL Password
NOTE!: Add skip-grant-tables
in /etc/mysql/my.cnf
under the [mysqld]
section and restart mysql server.
Create MySQL Database
Remove MySQL Database
Create MySQL USER
Grant Privileges
Grant File Privileges
Update User Passwords
Check Database Character Sets and Collations
Backup MySQL Database
Backup All MySQL Database
Restore MySQL Database
Export Specific Tables Only
Post Navigation
MyCLI - MySQL MariaDB and Percona Auto-completion and Syntax Highlighting Tool