I have already updated about this in my previous blog but that was from UI, In this tutorial You can do the same task from MySQL client itself.
To configure this feature, you’ll need to update the mysql user table to allow access from any remote host, using the % wildcard.
Open the command-line mysql client on the server using the root account.
Then you will want to run the following two commands, to see what the root user host is set to already:
mysql> use mysql;
Database changed
mysql> select host,user from user;
+-----------+------+
| host | user |
+-----------+------+
| localhost | root |
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
+-----------+------+
4 rows in set (0.07 sec)
Now I’ll update the localhost host to use the wildcard, and then issue the command to reload the privilege tables. If you are running this command, substitute the hostname of your box for localhost.
Now You are able to connect to mysql from any other machine using the root account.
To configure this feature, you’ll need to update the mysql user table to allow access from any remote host, using the % wildcard.
Open the command-line mysql client on the server using the root account.
Then you will want to run the following two commands, to see what the root user host is set to already:
use mysql;Here’s an example of the output on my database.
select host, user from user;
mysql> use mysql;
Database changed
mysql> select host,user from user;
+-----------+------+
| host | user |
+-----------+------+
| localhost | root |
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
+-----------+------+
4 rows in set (0.07 sec)
Now I’ll update the localhost host to use the wildcard, and then issue the command to reload the privilege tables. If you are running this command, substitute the hostname of your box for localhost.
update user set host=’%’ where user=’root’ and host=’localhost’;
flush privileges;
Now You are able to connect to mysql from any other machine using the root account.
Thanks for suggesting and explaining all the steps user logon permission. You have also uploaded the tutorial that will help me to understand the complete process in a more clear way.
ReplyDeletedigital signature certificate
A virtual private network or VPN service is the tool that is commonly used these days to protect the privacy of users when surfing the web. They can do this by creating a sort of encrypted tunnel where all the data that you submit on the web can pass through. Because it's encrypted, it will be impossible for people who intercept the data to read and understand it. work from home
ReplyDelete