随笔分类 -  MySQL

MySql
摘要:1、进入下载页面 MySQL :: Download MySQL Community Server (Archived Versions) 2、下载客户端相关的包 cd /tmp wget mysql-common_8.4.0-1debian11_amd64.deb wget mysql-commu 阅读全文
posted @ 2024-12-30 12:04 b̶i̶n̶g̶.̶ 阅读(60) 评论(0) 推荐(0) 编辑
摘要:一、停止 systemctl stop mysqld.service 二、下载要升级版本的相关rpm包 cd /tmp wget https://cdn.mysql.com/Downloads/MySQL-8.4/mysql-community-common-8.4.2-1.el8.x86_64.r 阅读全文
posted @ 2023-01-17 20:30 b̶i̶n̶g̶.̶ 阅读(228) 评论(0) 推荐(0) 编辑
摘要:一、官网下载地址 MySQL :: Download MySQL Community Server 二、安装 1、下载特定版本rpm cd /tmp wget https://cdn.mysql.com/Downloads/MySQL-8.4/mysql-8.4.2-1.el8.x86_64.rpm 阅读全文
posted @ 2022-06-17 15:28 b̶i̶n̶g̶.̶ 阅读(548) 评论(0) 推荐(0) 编辑
摘要:CREATE USER 'xxx'@'localhost' IDENTIFIED BY '123456' FAILED_LOGIN_ATTEMPTS 8 PASSWORD_LOCK_TIME 7; 一、解释 FAILED_LOGIN_ATTEMPTS:代表尝试失败的次数,这里为输错8次。 PASSW 阅读全文
posted @ 2021-09-02 17:02 b̶i̶n̶g̶.̶ 阅读(546) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/sumjob/article/details/103835877 阅读全文
posted @ 2021-05-19 09:30 b̶i̶n̶g̶.̶ 阅读(214) 评论(0) 推荐(0) 编辑
摘要:公式:astart <=bend && aend>=bstart 举例: //测试数据astart 1991-1 aend 1991-12 bstart 1992-1 bend 1992-12 阅读全文
posted @ 2021-05-13 08:38 b̶i̶n̶g̶.̶ 阅读(298) 评论(0) 推荐(0) 编辑
摘要:1.修改MySQL配置 /etc/my.cnf vim /etc/my.cnf [mysqldump] user=xxx password=xxx 2.创建脚本 touch /var/www/wwwroot/dbbaks/项目名称_bak.shvim /var/www/wwwroot/dbbaks/ 阅读全文
posted @ 2021-04-24 15:30 b̶i̶n̶g̶.̶ 阅读(235) 评论(0) 推荐(0) 编辑
摘要:-- -- Table structure for TestSort -- DROP TABLE IF EXISTS `TestSort`; CREATE TABLE `TestSort` ( `Id` int(0) NOT NULL AUTO_INCREMENT, `Name` varchar(3 阅读全文
posted @ 2021-04-20 10:05 b̶i̶n̶g̶.̶ 阅读(425) 评论(0) 推荐(0) 编辑
摘要:一、全局生效 set global TRANSACTION ISOLATION level read COMMITTED; show global variables like 'transaction_isolation'; 二、当前会话生效 set session TRANSACTION ISO 阅读全文
posted @ 2021-04-06 18:13 b̶i̶n̶g̶.̶ 阅读(1016) 评论(0) 推荐(0) 编辑
摘要:1.设置 vim /etc/my.cnf 末尾新增 [mysqld] local-infile = 1 2.查看 SHOW GLOBAL VARIABLES LIKE '%local%'; 阅读全文
posted @ 2021-03-16 19:53 b̶i̶n̶g̶.̶ 阅读(122) 评论(0) 推荐(0) 编辑
摘要:一、安装 1、选择安装源(二选一) 1.1 最新版安装 wget https://repo.mysql.com/mysql80-community-release-el8-4.noarch.rpm rpm -ivh mysql80-community-release-el8-4.noarch.rpm 阅读全文
posted @ 2021-03-01 16:18 b̶i̶n̶g̶.̶ 阅读(326) 评论(0) 推荐(0) 编辑
摘要:一、事务的并发问题 1、脏读:事务A读取了事务B更新的数据,然后B回滚操作,那么A读取到的数据是脏数据 2、不可重复读:事务 A 多次读取同一数据,事务 B 在事务A多次读取的过程中,对数据作了更新并提交,导致事务A多次读取同一数据时,结果 不一致。 3、幻读:系统管理员A将数据库中所有学生的成绩从 阅读全文
posted @ 2020-03-31 11:44 b̶i̶n̶g̶.̶ 阅读(150) 评论(0) 推荐(0) 编辑
摘要:create PROCEDURE USP_GetByPager( _pageindex int, _pagesize int ) BEGIN declare _currentpageindex int DEFAULT (_pageindex-1)*_pagesize; select a.* from A a inner join ( select id from A order by id ... 阅读全文
posted @ 2015-04-13 09:04 b̶i̶n̶g̶.̶ 阅读(143) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/acpp/archive/2010/08/09/1795464.html 阅读全文
posted @ 2015-01-14 18:59 b̶i̶n̶g̶.̶ 阅读(133) 评论(0) 推荐(0) 编辑
摘要:http://blog.chinaunix.net/uid-259788-id-2139305.html 阅读全文
posted @ 2014-09-01 15:06 b̶i̶n̶g̶.̶ 阅读(346) 评论(0) 推荐(0) 编辑
摘要:1.web.config 需要支持的东西:1.mysql-for-visualstudio-1.1.4.msi下载地址:http:... 阅读全文
posted @ 2014-08-01 17:35 b̶i̶n̶g̶.̶ 阅读(557) 评论(3) 推荐(1) 编辑
摘要:1 Create PROCEDURE getuser 2 ( 3 IN pageIndex INT, 4 IN pageSize INT, 5 OUT count INT 6 ) 7 8 BEGIN 9 declare pindex int DEFAULT (pageIndex-1)*pageS... 阅读全文
posted @ 2014-07-28 19:40 b̶i̶n̶g̶.̶ 阅读(360) 评论(0) 推荐(1) 编辑
摘要:1 CREATE PROCEDURE test_sp1( ) 2 BEGIN 3 DECLARE t_error INTEGER DEFAULT 0; 4 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_er... 阅读全文
posted @ 2014-07-28 17:50 b̶i̶n̶g̶.̶ 阅读(295) 评论(0) 推荐(0) 编辑

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