MySql
- 2023-03-21 10:05:47
- Post By 高景洋
如何修改mysql 时区为东八区?并将时间设置为北京时间
1、首先查看MySQL当前的时间
> select curtime();
> show variables like “%time_zone%”;
time_zone说明mysql使用system的时区,system_time_zone说明system使用CST时区
查看全文 | 浏览次数(22)
- 2023-01-31 09:55:03
- Post By 高景洋
提示如下错误:
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -
查看全文 | 浏览次数(68)
- 2022-12-13 14:44:33
- Post By 高景洋
3306端口已开放,已配置mysql远程链接,但是提示 “is not allowed to connect to this mysql”,要怎么处理?
操作步骤如下:
1、终端连接mysql
2、执行以下 sql :
use mysql;
select host from user where user='root';
查看全文 | 浏览次数(123)
- 2022-12-13 14:40:20
- Post By 高景洋
1.开启端口3306
firewall-cmd --zone=public --add-port=3306/tcp --permanent
2.重启防火墙
firewall-cmd --reload
3.查看已经开放的端口
firewall-cmd --list-ports
查看全文 | 浏览次数(122)
- 2022-12-13 14:13:29
- Post By 高景洋
如何在linux centos 7 下安装mysql,请看以下步骤~
1、下载MySQL rpm包 wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
2、解压rpm包 rpm -ivh mysql57-community-re
查看全文 | 浏览次数(143)
- 2022-05-07 10:08:01
- Post By 高景洋
安装mysql时,提示以下内容:
The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are con
查看全文 | 浏览次数(549)
- 2022-03-13 15:25:26
- Post By 高景洋
mysql错误 IP address 'xxxx' could not be resolved: Name or service not known
查看全文 | 浏览次数(482)
- 2021-11-04 13:46:59
- Post By 高景洋
mysql 服务器 配置好后,要从本地连接,但是没有配置远程链接权限,如何连接呢?
执行以下命令:
grant all on *.* to admin@'%' identified by '123456' with grant option;
flush privileges;
意义为,创建可以远程连接的 my
查看全文 | 浏览次数(561)
- 2021-04-26 10:34:50
- Post By 高景洋
# 在指定列后添加字段,并指定默认值 ALTER TABLE product2 ADD COLUMN LogicID VARCHAR(100) DEFAULT NULL COMMENT ''逻辑ID'' AFTER ID; # 为已存在字段添加索引 ALTER TABLE product2 ADD INDEX IDX_LogicID ( `LogicID` ); # 将字符串 与 数字 拼接后,更新 update product2 set LogicID = concat(''B'',ID)
查看全文 | 浏览次数(829)
- 2021-04-23 10:15:37
- Post By 高景洋
如果客户端未安装mysql ,请执行以下命令 yum install mysql -y 远程登陆 1、mysql -h 10.10.10.10 -u 用户名 -p 密码 2、show databases; 列表显示所有数据库,注意一定加 “分号” 3、show tables; 列表显示所有数据表,注意一定加 “分号” 4、select count(1) from tableName1; 注意一定加 “分号”
查看全文 | 浏览次数(4495)