
MySQL
80后大叔爱学习
2023年10月开始更新博客内容均为逆向相关的,其它内容暂时不会更新,没有太晚的开始,不如就从今天行动。
展开
-
CDH大数据平台 11Cloudera Manager Console使用TLS协议 (markdown新版)
cloudera manager console搭配tls协议原创 2022-09-27 23:06:53 · 386 阅读 · 19 评论 -
CDH大数据平台 04Cloudera Manager之MySQL5.7安装配置(markdown新版)
cdh 必备数据库MySQL和创建cloudera数据库原创 2022-09-22 10:07:59 · 559 阅读 · 11 评论 -
CDH大数据平台 Executing: /usr/java/jdk1.8.0_181-cloudera/bin/java -cp :/opt/cloudera/cm/schema/../lib/*
cdh安装缺少MySQL的驱动错误原创 2022-09-21 22:18:16 · 451 阅读 · 9 评论 -
Python 对MySQL进行增删改查等一系列操作
MySQL当前是互联网可以说RDBMS用的最多的一种数据,Python作为胶水语言当前占得分量可谓比足轻重,当下量大热点相距到一起,能擦出什么样的火花呢原创 2022-08-08 21:17:28 · 1729 阅读 · 0 评论 -
Linux These critical programs are missing or too old: compiler
gcc升级必备原创 2021-12-17 15:12:13 · 1977 阅读 · 2 评论 -
LINUX These critical programs are missing or too old: compiler python
从Python2.7系统自带升级到Python3.8,升级必备原创 2021-12-17 14:24:27 · 2447 阅读 · 1 评论 -
LINUX These critical programs are missing or too old: bison compiler python
低版本升级为高版本过程,升级必备原创 2021-12-17 13:56:30 · 6052 阅读 · 0 评论 -
LINUX These critical programs are missing or too old: make compiler
centos7.7在minimal安装必备升级方式原创 2021-12-17 13:44:55 · 2678 阅读 · 0 评论 -
CDH 04.MySQL5.7安装配置
1、创建文件目录mkdir -p /DATA/disk1/software/mysql/;cd /DATA/disk1/software/mysql/;2、下载mysql5.7包wget https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar;3、解压缩tar -xvfmysql-5.7.30-1.el7.x86_64.rpm-bundle.tar4、删除 mariadb-l.原创 2021-10-21 20:26:27 · 257 阅读 · 1 评论 -
MYSQL8 数据库程序出现问题,迁移数据
修改:my.conf文件原创 2021-06-09 11:38:35 · 178 阅读 · 0 评论 -
MYSQL8 创建账号并赋予权限
CREATE USER 'yys'@'%' IDENTIFIED BY 'yys20';GRANT ALL PRIVILEGES ON *.* TO 'yys'@'%' WITH GRANT OPTION;flush privileges;原创 2021-05-13 17:57:19 · 191 阅读 · 0 评论 -
MYSQL 修改密码策略
SHOW VARIABLES LIKE 'validate_password%';set global validate_password.length=4;set global validate_password.check_user_name=OFF;set global validate_password.mixed_case_count=0;set global validate_password.special_char_count=0;原创 2021-05-13 17:41:45 · 321 阅读 · 0 评论 -
MYSQL Failed to initialize DD Storage Engine
解决方法:rm -rf/var/lib/mysql原创 2021-05-13 17:18:17 · 8139 阅读 · 4 评论 -
MYSQL ParseException line 2:833 mismatched input ‘;‘ expecting ) near ‘“景区) comment “‘ in create tab
错误:ParseException line 2:833 mismatched input ';' expecting ) near '"景区) comment "' in create table statement字段太多了,用了group_concat超过23个字段就报错SHOW VARIABLES LIKE 'group_concat_max_len';修改group_concat_max_len = 102400临时生效办法:SET GLOBAL group_co.原创 2021-01-27 17:11:12 · 2488 阅读 · 0 评论 -
SQOOP com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
错误:java.lang.RuntimeException: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure原因:因为我的服务器在内网,mysql在云端,所以导入数据的时候只有master节点可以联网解决方法:master、slave节点都需要联网才能正常......原创 2021-01-26 11:21:04 · 1250 阅读 · 0 评论 -
MYSQL Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.
错误:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.原创 2021-01-26 11:16:15 · 217 阅读 · 0 评论 -
MYSQL You need either to explicitly disable SSL by setting useSSL=false, or set us
jdbc:mysql://localhost:3306/test?characterEncoding=utf-8&useSSL=false原创 2021-01-13 10:07:24 · 6455 阅读 · 0 评论 -
MySQL8 CentOS8.3安装配置图解
1、rpm -qa |grep mariadb2、yum -y remove mariadb*/usr/bin/perl is needed by mysql-community-server-8.0.21-1.el8.x86_64yum install perl.x86_64原创 2020-12-29 15:56:10 · 1040 阅读 · 0 评论 -
MYSQL You must configure either the server or JDBC driver (via the serverTimezone configuration prop
重启MySQL服务原创 2020-12-27 15:03:05 · 265 阅读 · 0 评论 -
MYSQL Windows安装MySQL8教程
1、下载MySQL,解压缩2、创建my.ini文件[mysqld]# 设置3306端口port=3306# 设置mysql的安装目录basedir=D:\mysql8# 设置mysql数据库的数据的存放目录datadir=D:\mysql8\Data# 允许最大连接数max_connections=200# 允许连接失败的次数。max_connect_errors=10# 服务端使用的字符集默认为utf8mb4character-set-server=utf8mb4# 创原创 2020-12-27 13:47:53 · 504 阅读 · 0 评论 -
HDP SQLException : SQL state: HY000 java.sql.SQLException: null, message from server:
全部错误:2020-08-29 00:38:52,849 [JISQL] /usr/java/current/bin/java -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://ambari.wanfe原创 2020-08-29 10:56:43 · 781 阅读 · 2 评论 -
MySQL unblock with ‘mysqladmin flush-hosts‘“ ErrorCode:
错误:SQL state: HY000 java.sql.SQLException: null, message from server: "Host '192.168.0.182' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'" ErrorCode: 1129原创 2020-08-26 16:57:24 · 376 阅读 · 0 评论 -
MYSQL Establishing SSL connection without server‘s identity verification is not recommende
常见问题原创 2020-07-29 21:07:32 · 219 阅读 · 0 评论 -
MYSQL ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
SHOW VARIABLES LIKE 'validate_password%';set global validate_password_policy=LOW;set global validate_password_length=4;原创 2020-02-20 10:41:11 · 403 阅读 · 0 评论 -
MYSQL InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 124885680
进入:cd /var/lib/mysql删除:rm -rf ib_logfile0 ib_logfile1原创 2020-02-13 10:24:24 · 4603 阅读 · 3 评论 -
MYSQL mysql: [Warning] Using a password on the command line interface can be insecure.
mysql -uroot -pxxx登录以后执行此命令OK原创 2019-12-24 21:57:37 · 440 阅读 · 0 评论 -
MYSQL Job for mysqld.service failed because the control process exited with error code
不能初始化,删除:rm -rf /var/lib/mysql原创 2019-11-25 21:07:03 · 580 阅读 · 0 评论 -
MYSQL 安装时出现的问题error: Failed dependencies
1、错误1:error: Failed dependencies: mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.23-1.el7.x86_64 mariadb-libs is obsoleted by mysql-community-libs-5.7...原创 2018-09-18 22:15:13 · 33572 阅读 · 9 评论 -
MYSQL 在5.7之后安装发现安装后需要密码才能登陆
解决方法:1、密码在/var/log/mysqld.log这个文件里,你可以用grep'temporarypassword'/var/log/mysqld.log来查询2、安全模式登入,也就是常说的绕过密码验证:/etc/init.d/mysql stopcd /usr/local/mysqlmysqld_safe –user=mysql –skip-grant-tabl......原创 2018-09-18 22:30:16 · 2282 阅读 · 0 评论 -
MYSQL Exception in thread “main“ java.sql.SQLException: No suitable driver found for jdbc:mysql://ma
我是maven工程,查看MySQL依赖版本是否过低,我用的5.1.7报错,修改为5.1.17就OK了原创 2018-09-19 10:18:21 · 3306 阅读 · 0 评论 -
MySQL 警告WARN: Establishing SSL connection without server‘s identity verification is not recommended.
// 连接URL为 jdbc:mysql//服务器地址/数据库名"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false"原创 2018-09-20 12:00:05 · 317 阅读 · 0 评论 -
MYSQL 数据库设计模式
第一章:数据库设计规范一、数据库命名规范总结1、所有数据库对像名称必须 小写2、命名要做到见名识意,禁止使用MySQL保留关键字3、临时表以tmp_开头,备份表以bak_开头并以时间戳结尾4、所有存储相同数据的列名和列类型必须一致二、数据库基本设计规范总结1、所有表必须使用Innodb存储引擎2、所有表及字段都要有备注信息,并使用UTF-8字符集3、要做到尽量控制单表大小(数据量......原创 2019-03-08 09:57:55 · 2123 阅读 · 0 评论 -
MySQL workbench数据建模的常用说明
PK:primary key 主键NN:not null 非空UQ:unique 唯一索引BIN:binary 二进制数据(比text更大)UN:unsigned 无符号(非负数)ZF:zero fill 填充0 例如字段内容是1 int(4), 则内容显示为0001AI:auto increment 自增......原创 2019-03-08 10:00:32 · 1546 阅读 · 0 评论 -
MYSQL error while loading shared libraries: libaio.so.1: cannot open shared object
缺少包:yuminstall-ylibaio原创 2019-05-23 14:51:43 · 866 阅读 · 0 评论 -
MYSQL Job for mysqld.service failed because the control process exited with error cod
权限有问题,查找相关地方权限原创 2019-05-23 15:22:08 · 4337 阅读 · 0 评论 -
MySQL Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
rpm --import /etc/pki/rpm-gpg/RPM*原创 2019-09-10 22:16:47 · 909 阅读 · 0 评论 -
MySQL使用帮助
1.登录数据库首先,你需要使用如下命令登录到数据库,注意,必须是root用户# mysql -u root -p2.查询用户表SELECT User, Host, Password FROM mysql.user;3.显示所有的用户(不重复)SELECT DISTINCT User FROM mysql.user;4.删除用户delete from mysql......原创 2018-07-18 16:57:47 · 298 阅读 · 0 评论