豁然高

导航

2020年6月17日 #

timedatectl命令修改系统日期,时间和时区

摘要: 主要使用命令总结 查看当前系统时区 timedatectl | grep Time 查找某地的时区 timedatectl list-timezones | grep Shanghai timedatectl list-timezones | grep Tokyo 设置系统时区 timedatect 阅读全文

posted @ 2020-06-17 18:14 豁然高 阅读(1804) 评论(0) 推荐(0) 编辑

mysql时区查看与设置

摘要: 一.查看数据库时区 show variables like'%time_zone'; mysql> show variables like "%time_zone"; + + + | Variable_name | Value | + + + | system_time_zone | CEST | 阅读全文

posted @ 2020-06-17 17:35 豁然高 阅读(20533) 评论(0) 推荐(0) 编辑

mysql 远程连接数据库

摘要: 一、连接数据库: 1、连接远程数据库 登陆远程数据库需要指明远程数据库所在服务器的IP地址或者域名,以及端口号, mysql -h mysql服务器的IP地址 -P 端口号(通常为3306) -u 用户名 -p密码 -h: mysql服务器的IP地址-P: 大写的P选项表示端口号,端口号默认为330 阅读全文

posted @ 2020-06-17 15:35 豁然高 阅读(24129) 评论(0) 推荐(0) 编辑