当前位置:网站首页>MySQL configuration in CDH installation
MySQL configuration in CDH installation
2022-07-25 03:02:00 【Rookies also have dreams】
install MySQL
1、 Installation package preparation
1.1、 Before installation, you need to check whether there is mysql
rpm -qa | grep -i mysql
If yes, uninstall and delete
rpm -e --nodeps xxx
1.2、 Delete the original image dependency
yum remove mysql-libs
1.3、 download MySQL Rely on and install
yum install libaio
yum -y install autoconf
wget https://downloads.mysql.com/archives/get/p/23/file/MySQL-shared-compat-5.6.24-1.el6.x86_64.rpm
wget https://downloads.mysql.com/archives/get/p/23/file/MySQL-shared-5.6.24-1.el6.x86_64.rpm
[[email protected] software]$ rpm -ivh MySQL-shared-5.6.24-1.el6.x86_64.rpm
[[email protected] software]# rpm -ivh MySQL-shared-compat-5.6.24-1.el6.x86_64.rpm
1.4、 Download the following package in software/mysql-libs in
MySQL-client-5.6.24-1.el6.x86_64.rpm
mysql-connector-java-5.1.27.tar.gz
MySQL-server-5.6.24-1.el6.x86_64.rpm
2、 install MySQL The server
2.1、 install MySQL Server side
[[email protected] mysql-libs]# rpm -ivh MySQL-server-5.6.24-1.el6.x86_64.rpm
2.2、 Check the randomly generated password
[[email protected] mysql-libs]# cat /root/.mysql_secret
2.3、 see MySQL state
service mysql status
2.4、 start-up MySQL
service mysql start
3、 install MySQL client
3.1、 install MySQL client
[[email protected] mysql-libs]# rpm -ivh MySQL-client-5.6.24-1.el6.x86_64.rpm
3.2、 link MySQL( Use random passwords )
[[email protected] mysql-libs]# mysql -uroot -pxxx
3.3、 Change Password
mysql>SET PASSWORD=PASSWORD(‘000000’);
3.4、 sign out MySQL
mysql>exit;
4、MySQL in user The host configuration in the table
Configuration as long as it is root user + password , You can login on any host MySQL database .
4.1、 Sign in MySQL
mysql -u root -pxxx
4.2、 Display database
mysql>show databases;
4.3、 Use MySQL database
mysql>use mysql;
4.4、 Show the table of this library
mysql>show tables;
4.5、 Exhibition user Table structure
mysql>desc user;
4.6、 Inquire about user surface
mysql>select user,host,password from user;
4.7、 modify user surface , hold host Change the content to %
mysql>update user set host=‘%’ where host=‘localhost’;
4.8、 Delete root Other users host
mysql>delete from user host != ‘%’;
4.9、 Refresh
mysql>flush privileges;
4.10、 sign out
mysql>exit;
5、MySQL CSCEC and CDH Related libraries
mysql>GRANT ALL ON scm.* TO ‘scm’@‘%’ IDENTIFIED BY ‘scm’;
mysql>CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
mysql>CREATE DATABASE hive DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
mysql>CREATE DATABASE oozie DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
mysql>CREATE DATABASE hue DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
thus MySQL Relevant operations are completed .
边栏推荐
- [stm32f130rct6] idea and code of ultrasonic ranging module
- The latest interview questions and analysis of software testing in 2022
- How to use blender to make 360 degree panorama and panoramic video?
- Banana pie bpi-m5 toss record (2) -- compile u-boot
- kettle_ Configure database connection_ report errors
- "Introduction to interface testing" punch in to learn day05: how can a testing framework support restful interfaces?
- Object.defineproperty use
- JS construct binary tree
- Solve the error: could not find 'xxxtest‘
- Riotboard development board series notes (VII) -- the use of framebuffer
猜你喜欢

What should I do when the interface encounters jsonstring

Stm32cubemx quadrature encoder

Domestic edge computing organization and product research

Dynamic programming -- Digital DP

Wechat sports field reservation of the finished works of the applet graduation project (5) assignment
![[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)](/img/b3/075ad2d555118272efede5a9969319.png)
[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)

Study notes of filebeat

Review all frames before sum of SSM frames

Dynamic planning of force buckle punch in summary

Operator explanation - C language
随机推荐
Technical experts from large factories: Thoughts on cloud nativity and software supply chain security
Operator explanation - C language
Mark down learning
2022-07-19: all factors of F (I): I are added up after each factor is squared. For example, f (10) = 1 square + 2 square + 5 square + 10 square = 1 + 4 + 25 + 100 = 130.
Banana pie bpi-m5 toss record (3) -- compile BSP
JS written test questions -- random numbers, array de duplication
The dolphin scheduler calls the shell script and passes multiple parameters
MySQL common function summary, very practical, often encountered in interviews
Backtracking to solve combinatorial problems
Js a simple way to store several objects in an array
Read and upgrade st-link chip information and SWD burning media through STM32 stlink utility tool
Dc-2-range practice
Actual combat in ThreadLocal project
Do you know about real-time 3D rendering? Real time rendering software and application scenarios are coming
Sum of "n" numbers of force deduction summary
Unity refers to a variable in another class (its own instance)
How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen
PHP record
Method of adding kernel in Jupiter notebook
Wechat H5 record