1.匿名用户与本地登陆
Warning
If you permit anonymous users to connect to the MySQL server, you should also grant privileges to all local users as
. Otherwise, the anonymous user account for user_name
@localhostlocalhost
in the mysql.user
table (created during MySQL installation) is used when named users try to log in to the MySQL server from the local machine.