我在我的服务器上安装了Ubuntu Server 15.04和MariaDB 10.0.17.
安装MariaDB时,我看不到密码设置页面,安装完成.
所以我尝试使用SET PASSWORD和UPDATE表更改我的root密码.
但是,没有发生.
我可以使用任何密码和密码访问MySQL.
像这样:
root@kuroneko-Server:~# mysql -uroot -p
Enter password: [Type 'itsnotpassword']
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 34
Server version: 10.0.17-MariaDB-0ubuntu1 (Ubuntu)
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
Run Code Online (Sandbox Code Playgroud)
我已经打了冲洗权限; 和服务mysql重启.
重新安装ubuntu,重新安装mariadb ......等.
service mysql status:
root@kuroneko-Server:~# service mysql status
? mysql.service - LSB: …Run Code Online (Sandbox Code Playgroud)