The host: localhost and user: root use the password from /etc/EFA-Config : MYSQLROOTPWD:******************************************
MariaDB [mysql]> select Host,User,Password from user;
+-----------+-----------+-------------------------------------------+
| Host | User | Password |
+-----------+-----------+-------------------------------------------+
| localhost | root | ************************************** |
| localhost | sa_user | ************************************** |
| 127.0.0.1 | root | |
| ::1 | root | |
| localhost | mailwatch | **************************************|
| localhost | sqlgrey | **************************************|
| localhost | efa | **************************************|
+-----------+-----------+-------------------------------------------+
Can I assign passwords for these accounts or simply remove user root for 127.0.0.1 and ::1?
Code: Select all
DELETE FROM mysql.user WHERE user='root' and password='';
FLUSH PRIVILEGES;
Code: Select all
Netstat -tapn
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 13608/mysqld