MySQL is divided into regular users and root users. These two types of users have different permissions.First, the Authority tableWhen you install MySQL, a database named MySQL is automatically installed. The MySQL database is stored in the
MySQL mainly includes two kinds of users: root and ordinary users, the former is a super administrator, with all the rights provided by MySQL, while ordinary users can only have to create the user to give it permissions.The security mechanism of
With the popularization of networks, more and more network-based applications are available. Network databases are one of them. One or several servers can provide services to many customers. this method brings a lot of convenience to people, but it
MySQL Database Security Settings
With the popularization of networks, more and more network-based applications are available. Network databases are one of them. One or several servers can provide services to many customers. This method brings many
Add remote users to MYSQL or allow remote accessAdd 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 @ \ "% \"
Guidance:With the popularization of networks, more and more network-based applications are available. Network databases are one of them. One or several servers can provide services to many customers. This method brings a lot of convenience to people,
MySQL Optimization-permission management and mysql permission management
Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46763767
In the mysql database, the mysql_install_db script initialization permission
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 @ \ "% \"
1. Export the entire database
Mysqldump-u user name-p--default-character-set=latin1 Database name > exported file name (database default encoding is latin1)
Mysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql
2. Export a table
Mysqldump-u user name-P
MySQL Database security solutionThe account is the simplest security measure for MySQL. Each account consists of a user name, a password, and a location (typically a server name, IP, or wildcard character). If user John logs on from Server1, it may
mysql command-common SQL statement Command code
Use G to display results vertically by rowIf a line is long and needs to be displayed, it's very hard to look at the results. By using g instead of a semicolon at the end of a SQL statement or command,
With the popularization of network, more and more web-based applications are used. The network database is one of them. Through one or several servers can provide services for many customers, this way to bring people a lot of convenience, but also
recent authorization of database users IP by IP segment , adjust to specific IP the , the intention is to troubleshoot the problem , can be targeted to a specific application server , or targeted to make certain settings .thought a UPDATE You
Nine. Cross-queryA cross-query can calculate the sum, average, count, or other sum of the data, which is calculated byTwo kinds of information are grouped: one appears on the left side of the table and the other appears at the top of the
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 as password grant all privileges on *. * TO admin @ localhost identified by \ 'password \ 'with grant option grant all privileges on *. * TO admin @ \ "% \" identified by \ 'password \ 'WITH GRANT OPTION
Add a
Database Migrations (A-B) require users to migrate to the past, while the user table (Mysql.user) has hundreds of users. There are 2 ways to quickly migrate:
1, under the same version of the conditions, directly back up a server MySQL database,
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 @
This article mainly introduces database migration (A-> B). users must also be migrated over, and user tables (mysql. user) have hundreds of users. There are two methods for fast migration:
1. in the same version, back up the mysql database of server
My MYSQL learning experience (13) my MYSQL learning experience (13)
My experiences with MYSQL (1)
My experiences with MYSQL (2)
My experiences with MYSQL (III)
My experiences with MYSQL (4)
My experiences with MYSQL (5)
My experiences with MYSQL (6)
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.