Basic principle
After the mysql installation is successful, the default is to not open the remote access permissions, only the local can access the mysql default configuration is actually in the mysql database user table in the mysql user, only this table needs to be modified to achieve specific records associated View can refer to the figure:
Add new user authorization
1 2 #grant all privileges on *.* to create username @"%" identified by "password"; #flush privileges; #refresh just content#format: grant privilege on database name.table name to user@login host identified by &ldquoquo User password & rdquo;; #@ is followed by the client IP address (or host name) to access mysql % represents any client # If you fill localhost for local access (then this user can not remotely access the mysql database). Add shop users and enable remote access as shown in the following example
1 grant all privileges on *.* to shop@"%" identified by "shopadmin";
Set remote access for existing users
1 2 3 #use mysql; #update db set host = "%" where user = "username"; #FLUSH PRIVILEGES; #If written as host=localhost then this user does not have remote access
View modified results
1 2 #use mysql; #select host,user,password from user
Linux environment description
1, if you just need to install mysql, then only need Install the following file MySQL-serv er-5.5.25-1.rhel5MySQL-devel-5.5.25-1.rhel5MySQL-client-5.5.25-1.rhel52, if you need to build Linux implementation environment (nginx, php, mysql, tomcat, jdk, server Multi-domain configuration) Please refer to my Linux project implementation series tutorial
:CenterOS 6.3 64-bit build nginx1.3+php5.4.3+mysql5.5.25+tomcat7+jdk7 installation
One of the benefits of learning Linux is that you can understand how the hardware works and the pri
Suddenly found that the website can not open, the database shows that the link can not be linked, th
We all know that lvm can expand the file system online, the function is very convenient, but if the
1. Get root privileges without logging in. If you dont set GRUB password, then we can use the easie
Basic tutorial on the use of crontab under Linux
Novice Academy: Installing Perl and Perl modules under Linux
Ubuntu Linux 8.04 Settings and Optimization
Install libxml2 "bin/rm: cannot remove `libtoolT: No such file
Linux Tips: Introduce two ways to modify port 22
Vsftp PASV mode (passive mode transfer) and port mode
Using a Linux cluster to charge a billing system
CentOS 6.2 firewall opens, closes, and opens designated ports
Linux to view memory commands and their interpretation of the command display
How to enter the security mode of Win10 system
IE7, IE8 browser installation failure
Install Win8 DT/NB model Metro has a white cross icon in the lower right corner.
How to winxp directly upgrade win10? Win xp free upgrade win10 method
How to set up my computer to win8 standby interface?
Win7 system open file and printer sharing settings tutorial (with the best win7 activation tool)
Cleverly solve the tracking problem of IP address under WinXP
How much memory does the computer XP system support?
XP system desktop IE icon is missing how to recover?
Three common reasons why the mouse cannot move under the win 7 system and the solution