About MySQL user management, note 1, creating a new user after logging in by the root user creates >> grant all privileges on *. * to [email protected] Identified by "123456" ;//create a new user, the user name is TestUser, the password is 12345
MYSQL adds remote users or allows remote access.Add the remote user admin password as password grant all privileges on *. * TO admin @ localhost identified by \ 'password \ 'with grant option grant all privileges on *. * TO admin @ \ "% \"
Method OneAdd remote user admin password to passwordGRANT all privileges on * * to[email protected]identified by \ ' password\ ' with GRANT OPTION;GRANT all privileges on * * to[email protected]\"%\" identified by \ ' password\ ' with GRANT
Add the remote user admin password passwordGRANTALLPRIVILEGESON ** TOadmin @ localhostIDENTIFIEDBYpasswordWITHGRANTOPTIONGRANTALLPRIVILEGESON ** TOadmin @ % ID add the remote user admin password as password grant all privileges on *. * TO admin @
Add remote user admin password for password GRANT all privileges on * * to [e-mail protected] identified by \ ' password\ ' with GRANT OPTION G RANT all privileges on * * to [email protected]\ "%\" identified by \ ' password\ ' with GRANT
Mysql database, remote access to the current mysql database on the server, remote access, do not want to publish the root account, so, created a demo account, allow the demo account to access the shandong database in the mysql database
Install MySQL1. Download the MySQL Installation FileThe following two files are required to install MYSQL:MySQL-server-5.1.7-0.i386.rpm
To download the above two RPM files, locate the "server" and "client programs" items and find the items
MySQL tutorial add a remote user or allow remote access to three ways
Log in with the root user, and then:
Grant all privileges the username @ "%" identified by "password" *.* to create;
Flush privileges; * Refresh the content just now *
Format:
In many cases, remote access to mysql is required, but the root user can only connect locally. To achieve remote access to the mysql database on your pc, you must open another account. First, run the mysql Command on MySQLServer to enter the mysql
Reference blog:Linux Learning CentOS (13) installation and configuration of MySQL database under--centos6.4MySQL multiple ways to change the root passwordBackup and restore of MySQLTroubleshoot MySQL import restore when the problem is garbledMySQL
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.