Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install mysql5.7.32 for raspberry pie 4B

Shulou Source: shulou.com Published: 2022-06-01 22:44:02 11月16日 Update

Editor to share with you how to install mysql5.7.32 in raspberry pie 4B. I hope you will get something after reading this article. Let's discuss it together.

Hardware: Raspberry Pi 4B (4G or 8g version)

System: Ubuntu 20.04 LTS

Recently, there is a project that needs to install the mysql5.7.32 version on the raspberry pie Pi4. I checked launchpad and found that it already supports the 5.7.33 version of the mysql5.7 series. We don't need it for the time being, so let's use 5.7.32 first.

Download related deb files

Wget http://launchpadlibrarian.net/503346130/mysql-server-5.7_5.7.32-0ubuntu0.18.04.1_arm64.debwget http://launchpadlibrarian.net/503346131/mysql-server-core-5.7_5.7.32-0ubuntu0.18.04.1_arm64.debwget http://launchpadlibrarian.net/355862128/libevent-core-2.1-6_2.1.8-stable-4build1_arm64.debwget http://launchpadlibrarian.net/503346130/mysql-server- 5.7mm 5.7.32-0ubuntu0.18.04.1_arm64.debwget http://launchpadlibrarian.net/355861262/libevent-core-2.1-6_2.1.8-stable-4build1_arm64.debwget http://launchpadlibrarian.net/503346128/mysql-client-5.7_5.7.32-0ubuntu0.18.04.1_arm64.debwget http://launchpadlibrarian.net/503346129/mysql-client-core-5.7_5.7.32-0ubuntu0.18.04.1_arm64.deb

Install mysql

# it went well this time Directly install dpkg-I * .deb# default service # systemctl list-units-- all-- type=service | grep mysql mysql.service loaded active running MySQL Community Server # configuration file root@ubuntu:~/mysql# cat / etc/mysql/my.cnf## The MySQL database server configuration file.## You can copy this to one of:#-"/ etc/mysql/my.cnf" to set global options #-"~ / .my.cnf" to set user-specific options.# # One can use all long options that the program supports.# Run program with-- help to get a list of available options and with#-- print-defaults to see which it would actually understand and use.## For explanations see# http://dev.mysql.com/doc/mysql/en/server-system-variables.html## * IMPORTANT: Additional settings that can override those from this fileholders # The files must end with '.cnf' Otherwise they'll be ignored.#!includedir / etc/mysql/conf.d/!includedir / etc/mysql/mysql.conf.d/

Visit mysql

The root user password for # mysql defaults to empty mysql-uroot-pEnter password: Welcome to the MySQL monitor. Commands end with; or\ g.Your MySQL connection id is 2Server version: 5.7.32-0ubuntu0.18.04.1 (Ubuntu) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.mysql > status-mysql Ver 14.14 Distrib 5.7.32, for Linux (aarch74) using EditLine wrapperConnection id: 2Current database:Current user: root@localhostSSL: Not in useCurrent pager: stdoutUsing outfile:''Using delimiter: Server version: 5.7.32-0ubuntu0.18.04.1 (Ubuntu) Protocol version: 10Connection: Localhost via UNIX socketServer characterset: latin1Db characterset: latin1Client characterset: utf8Conn. Characterset: utf8UNIX socket: / var/run/mysqld/mysqld.sockUptime: 22 min 7 secThreads: 1 Questions: 5 Slow queries: 0 Opens: 105 Flush tables: 1 Open tables: 98 Queries per second avg: 0.003 after reading this article, I believe you have some understanding of "Raspberry pie 4B how to install mysql5.7.32". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Raspberry version document article success done password more user knowledge hardware system industry information information channel or demand project channel use first Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi MySQL Shulou Technology Shulou Tech Info