Changes

From SME Server
Jump to navigationJump to search
57 bytes added ,  05:47, 8 July 2022
Line 106: Line 106:  
as root, first start mariadb without grant table
 
as root, first start mariadb without grant table
 
  systemctl stop mariadb
 
  systemctl stop mariadb
  /usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables
+
  /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql  --user=mysql --skip-grant-tables
 
{{warning box| be careful that mariadb will be running without any user auth, if it is open to outside of your server, then you might want to close this access first, and keep this session as short as possible }}
 
{{warning box| be careful that mariadb will be running without any user auth, if it is open to outside of your server, then you might want to close this access first, and keep this session as short as possible }}
 
then use mysql command line
 
then use mysql command line
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu