随笔分类 -  mysql

mysql-database
摘要:1,故障现象: mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 3678 (HY000) at line 1: Schema directory './zabbix' alr 阅读全文
posted @ 2020-04-24 13:16 开始认识 阅读(3411) 评论(0) 推荐(0) 编辑
摘要:linux安装MySQL报 error while loading shared libraries: libtinfo.so.5 解决办法 MySQL 我采用的是 Linux- Generic 包安装,其中详细略过不表。一顿操作之后,终于到将 mysql 服务启动。但是到了连接服务的时候却报错了。 阅读全文
posted @ 2020-04-09 14:59 开始认识 阅读(28702) 评论(0) 推荐(7) 编辑
摘要:mysql5.7初始化密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before mysql初始化密码常见报错问题 1,mysql5.6是密码为空直接进入数据库的,但是mysql5.7 阅读全文
posted @ 2020-04-09 14:52 开始认识 阅读(5736) 评论(0) 推荐(0) 编辑
摘要:Nginx的rewrite(地址重定向)剖析 1、rewrite语法: 指令语法:rewrite regex replacement[flag]; 默认值:none 应用位置:server、location、if rewrite是实现URL重定向的重要指令,他根据regex(正则表达式)来匹配内容跳 阅读全文
posted @ 2020-03-03 15:28 开始认识 阅读(554) 评论(0) 推荐(0) 编辑
摘要:1. 今天刚装了mysql8.0.13,试着分配几个账号和权限,结果报错: 2. 查资料得知mysql8的分配权限不能带密码隐士创建账号了,要先创建账号再设置权限 输入命令: Grant all privileges on test.* to 'test'@'%'; 又报错: You are not 阅读全文
posted @ 2020-02-28 10:59 开始认识 阅读(4509) 评论(1) 推荐(0) 编辑
摘要:vi /etc/my.cnf 阅读全文
posted @ 2019-10-15 17:40 开始认识 阅读(1223) 评论(0) 推荐(0) 编辑
摘要:亲测有效的 mysql 容器命令: #pull mysql:5.6 docker pull mysql:5.6 #起容器,映射3306端口,配置root用户密码 docker run -di --name=my_mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql:5.6 #连接mysql,注意:加上 -h 127.0.0.1的参数 mys... 阅读全文
posted @ 2019-10-12 10:35 开始认识 阅读(305) 评论(0) 推荐(0) 编辑
摘要:1、 --all-databases, -A //导出全部数据库。 #mysqldump -uroot -p --all-databases>outfile.sql #mysqldump -uroot -p -A>outfile.sql //等同于上句 2、 --all-tablespaces, - 阅读全文
posted @ 2019-10-11 21:15 开始认识 阅读(517) 评论(0) 推荐(0) 编辑
摘要:centos 7.3 安装mysql 5.6 安装阿里云的备份文件恢复工具: 其他操作: 阅读全文
posted @ 2019-03-19 15:26 开始认识 阅读(421) 评论(0) 推荐(0) 编辑
摘要:author:headsen chen date:2019-03-14 11:31:00 阅读全文
posted @ 2019-03-14 11:34 开始认识 阅读(18074) 评论(0) 推荐(0) 编辑
摘要:mysql如何修改root用户的密码 方法1: 用SET PASSWORD命令 方法2:用mysqladmin 方法3:用UPDATE直接编辑user表 方法4:在忘记root密码的时候,可以这样 阅读全文
posted @ 2019-02-21 10:04 开始认识 阅读(1047) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bashfunction help() ( cat EOF exit 1 ) ------------------------------------------- # 判断用户是否存在,不存在就新增mysql用户 check_and_add_user() { # create a user if the specified user doesn't exists local ... 阅读全文
posted @ 2019-01-16 20:48 开始认识 阅读(383) 评论(0) 推荐(0) 编辑
摘要:1,proxy配置 2、zabbix-server.conf 3,mysql-5.6.35的my.cnf 阅读全文
posted @ 2019-01-07 11:39 开始认识 阅读(1711) 评论(0) 推荐(0) 编辑
摘要:MariaDB [jumpserver]> select current_time;+ +| current_time |+ +| 16:22:18 |+ +1 row in set (0.00 sec)MariaDB [jumpserver]> select current_date;+ +| c 阅读全文
posted @ 2018-12-28 16:24 开始认识 阅读(2403) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-06-14 16:06 开始认识 阅读(2) 评论(0) 推荐(0) 编辑
摘要:author: headsen chen data :2018-06-08 16:21:43 1、 创建存放软件文件夹 # cd / #mkdir a 2、下载MySQL5.6二进制包 cd a wget http://cdn.mysql.com//archives/mysql-5.6/mysql- 阅读全文
posted @ 2018-06-08 16:24 开始认识 阅读(157) 评论(0) 推荐(0) 编辑
摘要:1,service mysql stop # mysql5.1版本的服务名是 mysqld,而mysql5.6版本的二进制包的服务名是 mysql. 2, /etc/init.d/mysql start --skip-grant-tables 3,mysql > 此时就可以在mysql里面修改roo 阅读全文
posted @ 2018-06-08 14:44 开始认识 阅读(172) 评论(0) 推荐(0) 编辑
摘要:mysql全量备份、增量备份。开启mysql的logbin日志功能。在/etc/my.cnf文件中加入以下代码: [mysqld]log-bin = "/home/mysql/logbin.log"binlog-format = ROWlog-bin-index = "/home/mysql/log 阅读全文
posted @ 2018-04-03 18:06 开始认识 阅读(5726) 评论(0) 推荐(0) 编辑
摘要:[root@mysql ~]# grep "temporary password" /var/log/mysqld.log 2018-04-03T08:08:05.867624Z 1 [Note] A temporary password is generated for root@localhos 阅读全文
posted @ 2018-04-03 17:32 开始认识 阅读(284) 评论(0) 推荐(0) 编辑
摘要:MySQL修改root密码的多种方法(推荐) 转载 2017-03-23 作者:fervent 我要评论 MySQL修改root密码的多种方法(推荐) 转载 2017-03-23 作者:fervent 我要评论 本文给大家分享了三种方法来解决mysql修改root密码的方法,非常不错,具有参考借鉴价 阅读全文
posted @ 2018-04-03 17:27 开始认识 阅读(134) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示