数据库

MySQL添加用户删除用户与授权(老版本)

MySQL添加用户删除用户与授权(老版本)

MySql中添加用户,新建数据库,用户授权,删除用户,修改密码(注意每行后边都跟个;表示一个命令语句结束): 1.新建用户 登录MYSQL: @>mysql -u root -p @>密码 创建用户: mysql> insert into m

SE_You SE_You 2024-04-09
68 0 0
MySQL慢查询日志分析

MySQL慢查询日志分析

一:查询slow log的状态,如示例代码所示,则slow log已经开启。 mysql> show variables like '%slow%'; +---------------------+------------------------------------------+ |

SE_You SE_You 2024-04-08
76 0 0
mysql优化——定位慢查询

mysql优化——定位慢查询

1、show status 命令 命令使用方式:show [session|global] status like 'slow_queries' 如果你不写  [session|global] 默认是session 会话,指取出当前窗口的执行,如果你想看所有(从mysql 启动到现在,则应该

SE_You SE_You 2024-04-07
120 0 0
centos7安装oracle 19c

centos7安装oracle 19c

1创建组和用户 /usr/sbin/groupadd -g 54321 oinstall /usr/sbin/groupadd -g 54322 dba /usr/sbin/groupadd -g 54323 oper /usr/sbin/useradd -u 54321 -g

SE_You SE_You 2024-04-03
599 0 0
show variables like xxx 详解mysql运行时参数

show variables like xxx 详解mysql运行时参数

通过show variables like xxx 详解mysql运行时参数 本文参考以下网页: 1.http://dev.mysql.com/doc/refman/5.1/en/server-status-variables.htm 2.http://dev.mysql.com/do

SE_You SE_You 2024-04-03
129 0 0
centos7--mysql 5.7.39 安装

centos7--mysql 5.7.39 安装

软件下载地址 下载地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads 上传软件包到/soft tar -xvf mysql-5.7.39-linux-glibc2.12-x86_64.tar 把解压文件移动到/usr/l

SE_You SE_You 2024-04-02
106 0 0
集群及oracle简单维护

集群及oracle简单维护

1.1 --查看用户列表 select username from dba_users 1.2 --更改用户密码 alter user 用户名 identified by 密码; 1.3 --查询默认密码过期时间 SELECT * FROM dba_profiles WHERE profi

SE_You SE_You 2024-04-01
74 0 0
Linux redhat 6.5 环境安装oracle 11g数据库

Linux redhat 6.5 环境安装oracle 11g数据库

一.安装环境 Linux服务器:Redhat 6.5 64位 oracle服务器:oracle11g-64位 1、iso打 yum 将/mnt/iso/下的iso文件挂载到/mnt/cdrom目录     mount -o loop /mnt/iso/XXXXX.iso /mnt

SE_Ning SE_Ning 2024-03-21
210 0 0
ORACLE11G打补丁(RAC)

ORACLE11G打补丁(RAC)

安装环境及补丁版本: Oracle版本:11.2.0.4Linux版本:Red Hat Enterprise Linux Server release 7.6 (Maipo)PSU版本号:p31718723_112040_Linux-x86-64.zipOJVM版本号:p31668908_1120

SE_Ning SE_Ning 2024-03-18
551 0 0
SQL中为什么不要使用1=1

SQL中为什么不要使用1=1

最近看几个老项目的SQL条件中使用了1=1,想想自己也曾经这样写过,略有感触,特别拿出来说道说道。 编写SQL语句就像炒菜,每一种调料的使用都可能会影响菜品的最终味道,每一个SQL条件的加入也可能会影响查询的执行效率。那么 1=1 存在什么样的问题呢?为什么又会使用呢? 为什么会使用 1

SE_Ning SE_Ning 2024-03-14
148 0 0
1 25 26 27 28 29 30