Linux default off MySQL remote connection, edit/etc/mysql/my.cnf file,
Change the inside bind-address = 127.0.0.1 to bind-address = 0.0.0.0,
Then restart the MySQL service, enter the command:/etc/init.d/mysql restart,
Next, create and assign users and permissions to telnet to MySQL,
Authorization format: Grant all privileges the on database. * To User name @localhost (IP) identified by ' password ';
Input command: Grant all privileges on *. * to ' myuser ' @ '% ' identified by ' root ' with GRANT option;
If the MyUser user does not exist, the MyUser user is created by default, and *. * is granted all permissions to the MyUser user.
' MyUser ' @ '% ' to allow myuser remote access from anywhere, root for myuser users to remotely access the MySQL database password,
Finally refresh the following table permissions, enter the command: Flush privileges;
End......
Ubuntu (Kali) open MySQL remote connection