当前位置:网站首页>Installing MySQL under Linux
Installing MySQL under Linux
2022-07-28 04:42:00 【I like chicken curry】
@linux Lower installation mysql
0、 Import jar Package to opt/mysql
1、 Check
rpm -qa|grep mariadb
If it exists, uninstall
Please execute the uninstall command first :rpm -e – nodeps mariadb-libs-5.5.56-2.e17.x86_64
There must be the following two packages
rpm -qa|grep libaio
rpm -qa|grep net-tools
2、 to grant authorization chmod -R 777 /tmp
3、 install mysql
rpm -ivh mysql-community-common-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.16-1.el7.x86_64.rpm
sudo rpm -ivh --nodeps mysql-community-server-5.7.16-1.el7.x86_64.rpm
Another kind :yum install
4、 View version
mysqladmin --version command
5、 Initialize service
mysqld --initialize --user=mysql
6、 Check the password
cat /var/log/mysqld.log
7、 Related services
start-up systemctl start mysqld.service
close systemctl stop mysqld.service
8、 Login to change password
mysql -u root -p
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;
9、 Modify character set
vim /etc/my.cnf
Add... At the end :character_set_server=utf8
And restart
systemctl restart mysqld.service
skip-name-resolve To skip dns Connect after parsing mysql
10、 Authorize remote connections
Log in again mysql Grant remote connection
grant all privileges on . to [email protected]‘%’ identified by ‘123456’;
Refresh the permissions
flush privileges;
Turn off firewall
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl restart mysqld.service
Finally, connect locally
边栏推荐
- Nat fundamentals and private IP
- 031 log4j log framework
- Study notes of Gu Yujia on July 27, 2022
- 重要的 SQL Server 函数 - 数字函数
- could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node
- 重要的 SQL Server 函数 - 字符串实用程序
- Important SQL server functions - date functions
- [record of question brushing] 9. Number of palindromes
- Jupyter Notebook安装代码提示功能
- MySQL:数据类型和运算符
猜你喜欢
![RuntimeError: stack expects each tensor to be equal size, but got [8] at entry 0 and [2] at entry 2](/img/66/27de1ac0f642fc91fca5196ea6e141.png)
RuntimeError: stack expects each tensor to be equal size, but got [8] at entry 0 and [2] at entry 2

High number_ Chapter 4__ Curvilinear integral_ Exercise solution
![[每日一氵]上古年代的 Visual Studio2015 安装](/img/b1/066ed0b9e93b8f378c89ee974163e5.png)
[每日一氵]上古年代的 Visual Studio2015 安装

Reading of seq2path: generating sentimental tuples as paths of a tree

全方位分析STEAM和创客教育的差异化

Mysql database -- first knowledge database

Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina

Machine learning and deep learning -- normalization processing

Space complexity calculation super full sorting!! (calculation of hand tearing complexity

重要的 SQL Server 函数 - 字符串实用程序
随机推荐
Odoo action analysis (action.client, action.act_window, action.server)
[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5
高数_第4章__曲线积分_习题解法
CMake使用基础汇总
Reading the paper "learning span level interactions for aspect sentimental triple extraction"
Gerrit operation - rollback a patch_ set
【sylar】框架篇-Chapter24-支持业务模块化
Jupyter notebook installation code prompt function
【Oracle】083错题集
Redis类型
登录之后右上角改变 进入登录状态
Efficient practice intelligent analysis of massive log data in aviation industry
[practice] use the web animations API to realize a clock with accurate timing
C语言初阶——循环语句(while,for,do while)
[Sylar] framework Chapter 8 timer module
[Sylar] practical part - redis based parameter query service
Solana「迷惑行为」:造手机、开门店
Mac installs mysql5.7 through brew
Use and expansion of fault tolerance and fusing
Select sorting method