跳转到主要内容
你行网

Main navigation

  • 首页
  • Drupal
  • 编程与开发
  • 数据库
  • 操作系统与应用
  • 服务器与运维
  • 社区
User account menu
  • 登录

面包屑

  1. 首页

centos 7 安装mysql服务

由 hrs, 10 二月, 2022

首先添加MySQL Yum 存储库

wget -o https://repo.mysql.com//mysql80-community-release-el7-5.noarch.rpm
yum install  mysql80-community-release-el7-5.noarch.rpm

检查 MySQL Yum 存储库是否已成功添加

 yum repolist enabled | grep "mysql.*-community.*"

通过以下命令安装 MySQL

sudo yum install mysql-community-server

使用以下命令启动 MySQL 服务器

systemctl start mysqld

使用以下命令检查 MySQL 服务器的状态

systemctl status mysqld

创建了一个超级用户帐户'root'@'localhost。超级用户的密码已设置并存储在错误日志文件中。要显示它,请使用以下命令

sudo grep 'temporary password' /var/log/mysqld.log

通过使用生成的临时密码登录并为超级用户帐户设置自定义密码,尽快更改 root 密码

mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';

 

  • 登录或注册以发表评论

文章标签

  • Mysql

评论

文章标签

CSS
Excel
ubuntu
php
五笔
vim
Linux
VPN
command
HTML
drupal 8
drupal 7
centos
composer
Mysql
drush
模块(module)
Drupal
JavaSrcipt
apache
drupal 9
英语
nerdtree
SEO
network
果树种植
surround
drupal10
主题(theme)
ssh
phpmyadmin
二进制
yum
权限
声音
ssl
selinux
HTML5
WireGuard
password
Dreamweaver
flameshot
DDEV
翻译
颜色
uploadprogress
firewalld
kernel
视图(views)
邮件验证
快捷键
gzip
xdebug
错误
电脑基础
ckeditor
C语言
简介
源地址
mbstring
certbot
php扩展
git
csharp
httpd
apt
电子秤
压缩解压
breadcrumb
表单
AI
短信验证
firmware
摄影
diff
superfish
重定向
网站备份
drupal 11
docker
版本号
tagclouds
java
RSS
adsense
端口
电脑技巧
simple_adsense
算法
KVM
youtube
JavaScript
cookie
badblocks
计算机基础
网站运营
RFID
zip
标签优化
VUE
dns
gimp
form
mod_expires 模块
赚钱
ip
http验证
curl
重定向,301
netstat
字段
maven
input
nginx
哈希值
npm
wps
更多

相关文章

  • 在PHP中判断数据库是否存在并新建数据库
  • information_schema.SCHEMATA 详解
  • MySQL 验证数据库是否存在的方法
  • MySQL 中常见的数据类型及其使用范围、大小和默认值
  • MySQL 关键字及其作用
  • 在mysql 数据库中,什么是启用外键约束
  • PDO 和 MySQLi 连接数据库的区别
  • 在终端输入mysql命令回车后不能修改的问题
  • 创建用户信息表的SQL语句解释
  • 如何查看mysql 端口命令
RSS源

友情链接 网站地图 版权信息 联系我们 网址导航 社区

Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号