enable mysqld systemctl_Centos7 安装 Mysql (Ubuntu)
1.# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm下载mysql源安装包2.# yum localinstall mysql57-community-release-el7-8.noarch.rpm安装mysql源3.# yum repolist enabled|grep "mysql.*-com
1.# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
下载mysql源安装包
2.# yum localinstall mysql57-community-release-el7-8.noarch.rpm
安装mysql源
3.# yum repolist enabled|grep "mysql.*-community.*"
检查mysql源是否安装成功
4.# yum install mysql-server
安装mysql 如果有显示[y/n] 直接输y就ok了
5.# systemctl start mysqld
# systemctl status mysqld
启动mysql
6.# systemctl enable mysqld
# systemctl daemon-reload
开机启动
7.# grep ‘temporary password‘ /var/log/mysqld.log
# mysql -u root -p
修改root本地登录密码,mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码。通过下面的方式找到root默认密码,然后登录mysql进行修改:
原文:https://www.cnblogs.com/dennyxiao/p/8855250.html
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)