1.常用命令:
安装上传下载文件命令
yum install lrzsz
安装webget工具
yum -y install wget
------------------------------------分割线---------------------------------------------
在CentOS上成功安装MysqL Server后,发现无法用客户端进行连接,查阅相关质料后发现如果想让root用户支持远程登录,是需要进行额外配置的;配置步骤如下:
步骤:
修改root密码 (可选)
# 切换到MysqL这个数据库
MysqL> use MysqL;
# 将root用户的密码修改为:123456
MysqL> update user set password=PASSWORD('123456') where user='root';
检查root配置
# root用户登录
$ MysqL -u root -p
# 切换到MysqL这个数据库
MysqL> use MysqL;
# 查看root用户配置
MysqL> select host,user from user where user='root';
修改root配置
如果查询结果中不包含以下记录,请添加,否则请忽略次步骤
host user
% root
MysqL> update user set host = ‘%’ where user = ‘root’ and host=’127.0.0.1’;
给用户授权
MysqL> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
使配置生效
MysqL> flush privileges;