Bootstrap

云服务器配置

前段时间搞了个阿里云服务器自己玩玩,jdk以及Tomcat都安装好了,就剩下MySQL数据库不会安装,在网上找了很多教程也没有安装成功。后来一次偶然,发现了一个资源,就试着安装,没成想真的安装好了,就记录下了本次MySQL数据库安装的大概步骤。

阿里云服务器MySQL数据库配置
mysql安装:

1.检查系统中是否已安装了MySQL

rpm -qa|grep mysql

2.如果有,建议先卸载

yum -y remove mysql
yum -y remove ...
rm -rf /var/lib/mysql/

3.新建一个software文件夹下载:

wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

4.安装yum源

rpm -ivh mysql57-community-release-el7-8.noarch.rpm

5.安装MySQL

yum -y install mysql-server

6.启动MySQL

systemctl start mysqld

7.检查MySQL的状态

service mysqld status

8.如何获取MySQL产生的随机密码

grep "temporary password" /var/log/mysqld.log

9.登录MySQL

mysql -uroot -p

10.更改MySQL(8.0以上)密码:

alter user 'root'@'localhost' IDENTIFIED BY '123456';

MySQL云服务器安装教程:
https://cloud.tencent.com/edu/learning/course-1676-12116

Navicat远程登录显示host ‘ip’ is not allowed to connect to this mysql server解决方案:
https://jingyan.baidu.com/article/e4511cf36db5282b845eaf2b.html

github地址:https://github.com/2535414380/cloudnote
码云地址:https://gitee.com/ppdxzz/cloudnote

;