MySQL Operations: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
<tt>/var/lib/mysql</tt> | <tt>/var/lib/mysql</tt> | ||
=Runtime Directory= | |||
<tt>/var/run/mariadb</tt> | |||
=Change Root Password= | =Change Root Password= |
Revision as of 03:30, 30 March 2021
Internal
Version
Connect to the database then execute:
SELECT VERSION();
Logs
/var/log/mariadb/
/var/log/mysql/
Data Directory
/var/lib/mysql
Runtime Directory
/var/run/mariadb
Change Root Password
/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h now510.local password 'new-password'