paulwong

          My Links

          Blog Stats

          常用鏈接

          留言簿(67)

          隨筆分類(1393)

          隨筆檔案(1151)

          文章分類(7)

          文章檔案(10)

          相冊

          收藏夾(2)

          AI

          Develop

          E-BOOK

          Other

          養生

          微服務

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          60天內閱讀排行

          install redhat rh-mariadb103

          # Install MariaDB 10.3
          yum install rh-mariadb103-mariadb-server rh-mariadb103-mariadb-server-utils -y

          # Add MariaDB 10.3 to $PATH
          scl enable rh-mariadb103 bash
          source /opt/rh/rh-mariadb103/enable

          # start 10.3 server
          chown -R mysql:mysql /var/opt/rh/rh-mariadb103/lib/mysql;
          systemctl start rh-mariadb103-mariadb

          # Upgrade tables
          mysql_upgrade -p[PASSWORD]

          # Set 10.3 to start on boot
          systemctl enable rh-mariadb103-mariadb

          # Add 10.3 to paths on reboot (and remove 10.2) 
          rm /etc/profile.d/rh-mariadb102.sh
          cp /opt/rh/rh-mariadb103/enable /etc/profile.d/rh-mariadb103.sh

          # increase max connections number
          systemctl edit rh-mariadb103-mariadb
          [Service]
          LimitNOFILE=65535
          LimitNPROC=65535

          vi /etc/opt/rh/rh-mariadb103/my.cnf
          [mysqld]
          max_connections=1000
          open_files_limit=65535

          # restart mariadb103
          systemctl daemon-reload
          systemctl restart rh-mariadb103-mariadb

          # check result
          mysql -e 'show variables like "max_connections"'

          https://www.server-world.info/en/note?os=CentOS_7&p=mariadb103&f=4

          posted on 2020-10-24 18:02 paulwong 閱讀(382) 評論(0)  編輯  收藏 所屬分類: MYSQL

          主站蜘蛛池模板: 班戈县| 沧州市| 通渭县| 彭州市| 南阳市| 三明市| 边坝县| 醴陵市| 汶川县| 微博| 大足县| 尼玛县| 禄劝| 乌拉特前旗| 沙河市| 彭州市| 金沙县| 双峰县| 佛冈县| 巩义市| 松阳县| 泗阳县| 舟山市| 土默特左旗| 衡南县| 牡丹江市| 丹阳市| 邻水| 昭通市| 固安县| 贞丰县| 泰州市| 枣阳市| 黔南| 峡江县| 沾益县| 博湖县| 蒙城县| 天祝| 高清| 大安市|