当前位置:网站首页>mysql学习1:安装mysql
mysql学习1:安装mysql
2022-06-27 11:41:00 【夏慕槿苏】
安装教程百度的https://www.yiibai.com/mysql
学习环境Centos7.4
[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 一:安装mysq
wget https://dev.mysql.com/get/mysql80-community-release-el7-4.noarch.rpmrpm -ivh mysql80-community-release-el7-4.noarch.rpm
下载安装,出现报错
看到遇到了告警,这是由于 yum 安装了旧版本的 GPG keys
解决办法:rpm --import /etc/pki/rpm-gpg/RPM*继续安装
# rpm -ivh mysql80-community-release-el7-4.noarch.rpm # yum update mysql-server# yum install -y mysql-server# systemctl start mysqld
mysql安装并启动完成
二、登录数据库
登录数据库提示报错,直接跳过密码

登录报错
vim /etc/my.cnf在[mysqld]后面任意一行添加“skip-grant-tables”用来跳过密码验证,重启mysql
systemctl restart mysqld
mysql登录跳过认证设置
重启mysql服务,完成登录
# systemctl restart mysqld //重启mysqld服务# mysql //直接使用mysql进入数据库
登录数据库
下一篇文章:《mysql学习2:下载并导入示例库》
边栏推荐
- R语言使用MASS包的polr函数构建有序多分类logistic回归模型、使用VGAM包的vglm函数对有序多分类logistic回归模型进行平行性假设作检验
- Research Report on the overall scale, major manufacturers, major regions, products and application segments of hydraulic torque in the global market in 2022
- Open source model library of flying propeller industry: accelerating the development and application of enterprise AI tasks
- 杰理之串口通信 串口接收IO需要设置数字功能【篇】
- 面试突击60:什么情况会导致 MySQL 索引失效?
- Xuri 3sdb, installing the original ROS
- Peak store app imitation station development play mode explanation source code sharing
- R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.labels参数在可视化图像中为强调线添加标签信息
- R语言glm函数构建二分类logistic回归模型(family参数为binomial)、使用AIC函数比较两个模型的AIC值的差异(简单模型和复杂模型)
- [tcapulusdb knowledge base] Introduction to tcapulusdb general documents
猜你喜欢

Youboxun attended the openharmony technology day to create a new generation of secure payment terminals
![[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction](/img/04/b1194ca3340b23a4fb2091d1b2a44d.png)
[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction

进程间通信详解

The wonderful use of 0 length array in C language

干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了

Build the Internet of things system from scratch

数学知识——博弈论(巴什博奕、尼姆博奕、威佐夫博奕)思路及例题

0基础了解电商系统如何对接支付渠道

"Internet +" contest topic hot docking | I figure to understand 38 propositions of Baidu

怎么找相同台词的影视片段?这8个电影搜索神器,一句台词找到对应片段
随机推荐
[tcapulusdb knowledge base] Introduction to tcapulusdb system management
居家办公被催之后才明白的时间管理
Nifi from introduction to practice (nanny level tutorial) - identity authentication
After Jerry's sleep, the regular wake-up system continues to run without resetting [chapter]
星际争霸的虫王IA退役2年搞AI,自叹不如了
$15.8 billion! 2021 the world's top15 most profitable hedge fund giant
在 Golang 中构建 CRUD 应用程序
Jerry's adding timer interrupt [chapter]
Detailed explanation of interprocess communication
Qstype implementation of self drawing interface project practice (I)
Thinkphp6 interface limits user access frequency
C語言0長度數組的妙用
怎么找相同台词的影视片段?这8个电影搜索神器,一句台词找到对应片段
Jianmu continuous integration platform v2.5.0 release
优博讯出席OpenHarmony技术日,全新打造下一代安全支付终端
聊聊 Go 语言与云原生技术
Interview shock 60: what will cause MySQL index invalidation?
R语言使用epiDisplay包的poisgof函数对泊松回归(Poisson Regression)执行拟合优度检验、检验是否存在过度离散问题(overdispersion)
nifi从入门到实战(保姆级教程)——身份认证
Wechat applet payment password input