Home > Database > Mysql Tutorial > body text

Fedora安装mysql数据库_MySQL

WBOY
Release: 2016-05-27 13:46:32
Original
1471 people have browsed it

下载MySQL5.7.9 yum仓库

wget http://dev.mysql.com/get/mysql57-community-release-fc23-7-noarch.rpm

 

rpm -ivh mysql57-community-release-fc23-7-noarch.rpm

验证仓库

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

 

安装

yum install mysql-community-server

 

启动mysql服务

service mysql start

 

查看mysql服务状态

service mysql status

 

获取临时密码

cat /var/log/mysql.log | grep "A temporary password"

 

修改密码

mysqladmin –uroot –p 'temp passwd' password 'new passwd'

 

登陆mysql

mysqladmin –user=XXX –password=XXX

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template