在kali中无法打开mysql,就会出现报错信息
ERROR 1045 (28000): Access denied for user 'debian-sys-main'@'localhost' (using password: YES)
则使用以下的代码执行,打开mysql
sudo mysql -u root -p
会出现以下信息
[sudo] user 的密码:
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 44
Server version: 10.5.8-MariaDB-3 Debian buildd-unstable
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
password:我是输入开机密码,它就可以了,但不排除它会随机生成密码