paulwong

          My Links

          Blog Stats

          常用鏈接

          留言簿(67)

          隨筆分類(1389)

          隨筆檔案(1147)

          文章分類(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 閱讀(381) 評論(0)  編輯  收藏 所屬分類: MYSQL

          主站蜘蛛池模板: 哈尔滨市| 托克逊县| 深水埗区| 秭归县| 临夏市| 莱州市| 赣榆县| 清远市| 喀喇| 余江县| 甘泉县| 门源| 长海县| 大余县| 沙洋县| 江都市| 明水县| 松溪县| 临猗县| 麻江县| 德江县| 布尔津县| 苗栗县| 股票| 兰州市| 万安县| 屏东县| 郁南县| 安平县| 永福县| 乡宁县| 百色市| 迁安市| 乐平市| 华池县| 锡林浩特市| 皮山县| 平潭县| 宁蒗| 津南区| 政和县|