首页 > 数据库 >mysql5.7.40升级到5.7.44

mysql5.7.40升级到5.7.44

时间:2024-09-23 10:04:24浏览次数:1  
标签:5.7 mysql5.7 40 systemctl mysqld mysql rpm 44

1.软件下载

https://www.mysql.com/downloads/

找到mysql community GPL download--mysql community server--选择5.7.44和rhel/oracle 下载mysql-5.7.44-1.el7.x86_64.rpm-bundle.tar 2.停服备份 systemctl stop mysqld cp /etc/my.cnf /etc/my.cnf.bak20240801 配置文件 tar -zcvf /backup/mysql.tar.gz /var/lib/mysql 数据目录 3.安装 cd /root/mysql_software tar xvf mysql-5.7.44-1.el7.x86_64.rpm-bundle.tar 需要删除mysql-community-test-5.7.44-1.el7.x86_64.rpm rpm -Uvh *.rpm 4.启动mysqld systemctl start mysqld systemctl status mysqld mysql -V 查看版本 5.重置root密码 修改/etc/my.cnf 加入一行skip-grant-tables 重启mysqld服务 mysql -uroot -p 回车 use mysql update user set authentication_string=PASSWORD('1Sw@Z280!') where User='root'; flush privileges; 修改完后去掉skip-grant-tables重启mysqld systemctl stop mysqld systemctl start mysqld 6.mysql执行upgrade升级 mysql_upgrade -uroot -p1Sw@Z280!

标签:5.7,mysql5.7,40,systemctl,mysqld,mysql,rpm,44
From: https://www.cnblogs.com/sherq1989/p/18426444

相关文章

  • 题单2:基础练习(1000~1400)
    概述每组题单由7道题组成,难度为:1000(1),1100(2),1200(2),1300(1),1400(1)第五周9.30~10.6500A.NewYearTransportation467B.FedorandNewGame82A.DoubleCola1541B.PleasantPairs1832C.ContrastValue520B.TwoButtons数学230B.T-pri......
  • P6240
    题面稍微有一点不一样。Statement给\(n\)个物品,每个物品有价值\(v_i\)、体积\(w_i\)。\(q\)次询问,问考虑\([L..R]\)区间的物品,用容量为\(m\)的背包最多能装多少价值的物品,有多少种方案,每个物品只能被装一次。\(n\le2\cdot10^4,q\le10^5,w_i,m_i\le500,v_i\le......
  • 408算法题leetcode--第11天
    3.无重复字符的最长子串3.无重复字符的最长子串思路:滑动窗口时间:O(n);空间:O(字符种类数)classSolution{public:intlengthOfLongestSubstring(strings){//滑动窗口:如果没有出现相同的字符,那么右指针一直向右intret=0,size=s.size();......
  • 408算法题leetcode--第九天
    344.反转字符串344.反转字符串思路:双指针时间:O(n);空间:O(1)classSolution{public:voidreverseString(vector<char>&s){intsize=s.size();for(inti=0,j=size-1;i<j;i++,j--){swap(s[i],s[j]);}......
  • 小美的数组合并(美团20240427年暑期实习笔试真题)
    题目:小美的数组合并小美拿到了一个数组,她每次操作可以将两个相邻元素ai合并为一个元素,合并后的元素为原来两个元素之和。小美希望最终数组的最小值不小于k。她想知道有多少种不同的合并结果?输入描述第一行输入两个正整数n,k,代表数组大小和数组的最大值。第二行输入个正整数ai,......
  • HI8166 同步40V4A
    Hi8166isasynchronousrectifierfor switchmodepowersupplies,which combinesanN-ChannelMOSFETand adrivercircuitdesignedforsynchronous rectificationinDCM,QRandCCM operation. Thesynchronousrectificationcan effectivelyreducethese......
  • [20240920]跟踪library cache lock library cache pin使用gdb.txt
    [20240920]跟踪librarycachelocklibrarycachepin使用gdb.txt--//前一阵子,写的使用gdb跟踪librarycachelocklibrarycachepin的脚本有一个小问题,无法获得lockaddress以及pinaddress--//地址,有一点点小缺陷,尝试修改完善看看。--//按照https://nenadnoveljic.com/blog/tr......
  • COMPSCI 340  Operating System
    COMPSCI340 S2 2024Assignment 215%ofyour gradeDuedate: 11:59 pm Friday 20th SeptemberTotal– 15 marksIntroductionThisassignmentisdivided intothreeparts:1.  Thefirstpartofthisassignmentservesasanintroductiontouserspace......
  • 20240909_181725 c语言 标识符
    什么是标识符命名规定标识符特性区分大小写命名约定演练小结......
  • Day 20 回溯法part02| LeetCode 39. 组合总和 ,40.组合总和II,131.分割回文串
    39.组合总和39.组合总和classSolution{publicList<List<Integer>>res=newArrayList<>();publicList<Integer>path=newLinkedList<>();publicList<List<Integer>>combinationSum(int[]cand......