Raspberry Pi builds and installs mysql, raspberry builds mysql

Source: Internet
Author: User

Raspberry Pi builds and installs mysql, raspberry builds mysql

Recently, I started a Raspberry Pi with a whimsical attempt to build a small household server, which has been around for 7x24 hours at home.


It is really very small, only a big slap, bought some accessories for Raspberry Pi, Shell, small fan, two heat sink, 32g sd card, HDMI cable, after assembly effect.

Sudo apt-get update

Then wait. After waiting, prepare to install mysql. Run the following command to install mysql:

sudo apt-get install mysql-server

Then wait. During the installation process, you will be prompted to enter the root password of mysql. A prompt will be displayed twice. After the input is complete, the installation is successful.

Run the following command to access mysql:

mysql -u root -p

Then you will be prompted to enter the password to enter mysql:

root@raspberrypi:/home/pi# mysql -u root -pEnter password:Welcome to the MySQL monitor.  Commands end with
Your MySQL connection id is 43
Server version: 5.5.35-0+wheezy1 (Debian)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.



You can use Navicat for MySQL or other software on your computer to remotely connect to Raspberry Pi database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.