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
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
You can use Navicat for MySQL or other software on your computer to remotely connect to Raspberry Pi database.