【FX实习】 2Centos7下的MySQL安装
1.查看自带数据库rpm -qa|grep mariadb
有则卸载
rpm -e --nodeps mariab..... 回车
无则第2步
2.将MySQL包放入Linux指定目录下 如 opt/
分别两个rpm文件 clientserver
3安装
rpm -ivh MySQL包名.....回车
rpm-ivhMySQL第二个文件回车
4登录第一回不用密码
mysql -u root
修改密码
set password =password(‘123456‘);回车
远程登录命令如下
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
可在外部Navicat连接数据库了
http://cdn.u1.huluxia.com/g4/M00/44/DF/rBAAdmEN9haAbaBFAABcrBhvBAE139.pnghttp://cdn.u1.huluxia.com/g4/M00/44/DF/rBAAdmEN9haAD1ukAABNev2o6Rs641.pnghttp://cdn.u1.huluxia.com/g4/M00/44/DF/rBAAdmEN9heAaTFPAABTwn_E858183.pnghttp://cdn.u1.huluxia.com/g4/M00/44/DF/rBAAdmEN9heAUTb4AACPlXMicys710.pnghttp://cdn.u1.huluxia.com/g4/M00/44/DF/rBAAdmEN9heAS8HPAACBNw9SlzY764.pnghttp://cdn.u1.huluxia.com/g4/M00/44/E0/rBAAdmEN9hiAXbYtAADur9-ZOck723.pnghttp://cdn.u1.huluxia.com/g4/M00/44/E0/rBAAdmEN9hiAJamfAAGbjnalZIo104.pnghttp://cdn.u1.huluxia.com/g4/M00/44/E0/rBAAdmEN9hmAR8sEAACnDw44QEo854.pnghttp://cdn.u1.huluxia.com/g4/M00/44/E0/rBAAdmEN9hmAHpNlAAF530VMT8Q245.png 路过
页:
[1]