1, Change Table method. Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from "localhost" renamed "
1, Change Table method.
Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from "localhost" renamed
Linux set MySQL and allow external machines to access sudo vi/etc/my.cnf
The specific directory is specific circumstances, some people are installed in the personal directory, then find the corresponding directory can be.
I. Modification of the
When migrating to MySQL databases, it is sometimes necessary to migrate users and permissions within the source database. For this migration we can get the user's relevant permissions from the Mysql.user table to generate the corresponding SQL
This article for you to share the
Install Command:
Copy Code code as follows:
sudo apt-get install mysql-server mysql-client mysql-query-browser mysql-admin
To Modify the root password:
Copy Code code as follows:
Copy Code code as follows:
# VI Mysqlusers.txt
Create Database Dataname;
Grant all privileges on dataname.* to username@localhost identified by ' password ';
Flush privileges;
#/usr/local/mysql/bin/mysql-u root-p Password
Three ways to solve this problem:
1, Change Table method. Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "
Preparing Resources
JDKDownload AddressHttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
MysqlDownload Addresshttps://dev.mysql.com/downloads/mysql/
Ambari HDPYou can adjust the version number according to the
First, create MySQL, authorizeRights ManagementWe know that our top authority manager is the root user, and it has the highest permissions. Includes select, Update, delete, update, Grant, and so on. So in general, after the company, the DBA engineer
Rights Management:If you want to create a new user, the following actions are required:1. Go to MySQL Databasemysql> Use mysqldatabase changed2. New User deletion1. Create User: # Specify ip:192.118.1.1 's MJJ User login create username ' mjj ' @ ' 1
Mysql> grant Permissions 1, permissions 2,... Permission n on the database name. Table name to User name @ user address identified by ' connection password ';Permissions 1, Permissions 2,... Permission n represents 14 permissions, such as
New Method
We now add a ' username ' user with a password of ' password ', allowing it to access MySQL from outside.
1 Grant all on * to ' username ' identified by ' password ';
To view the user table content, enter select
This article is from the following website: Http://wiki.ubuntu.com.cn/MySQL.Install MySQLsudo apt-get install Mysql-serverThis should be very simple, and I think everyone in the installation is not too much problem, so it is not much to say, the
When we use the MySQL database, sometimes our program is not on the same machine as the database, we need to access the database remotely. By default, MySQL users do not have remote access permissions. Here are two ways to solve this problem. 1,
1. Download MySQL Community Server 5.6.37 Https://dev.mysql.com/downloads/mysql/5.6.html#downloads2. Unzip the MySQL archive packageUnzip the downloaded MySQL archive into a custom directory. For example D:\Program files\mysql-5.6.37-winx643. Add
Rights ManagementWe know that our top authority manager is the root user, and it has the highest permissions. Includes select, Update, delete, update, Grant, and so on. So in general, after the company, the DBA engineer creates a user and password
MySQL by default to turn off Telnet permissions, the following actions allow users to log in any location: 1. Enter mysql,grant all privileges on * * to ' root ' @ '% ' of ' identified by ' with the GRANT option;identified by followed by a password
1. Install MySQL via the yum commandYou can see which versions of MySQL are available through the Yum list |grep MySQL method first2. Install MySQLYum install mysql-server mysql-devel mysql3. Start-Stop MySQLService MySQL start/service MySQL stopYou
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
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.