Linux(CentOS)安装MySql
安装mysql yum repository
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
安装mysql
yum -y install mysql-community-server.x86_64
启动mysql
service mysqld start
查找mysql临时密码
grep "password" /var/log/mysqld.log
登录
mysql -uroot -p
copy上面的临时密码进行登录
修改密码
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘mySql123!‘;
创建数据库
退出
相关推荐
emmm00 2020-11-17
王艺强 2020-11-17
aydh 2020-11-12
世樹 2020-11-11
zry 2020-11-11
URML 2020-11-11
spurity 2020-11-10
yifangs 2020-10-13
Andrea0 2020-09-18
Ida 2020-09-16
ltd00 2020-09-12
tufeiax 2020-09-03
xjd0 2020-09-10
greatboylc 2020-09-10
adsadadaddadasda 2020-09-08
疯狂老司机 2020-09-08
CoderToy 2020-11-16
ribavnu 2020-11-16
bianruifeng 2020-11-16