Home > Database > Mysql Tutorial > 树莓派搭建安装MySQL

树莓派搭建安装MySQL

WBOY
Release: 2016-06-07 15:10:22
Original
1944 people have browsed it

最近刚入手了一枚树莓派,突发奇想打算做一个小型的家用服务器,在家7*24小时一直挂着。然后就是等待了。等待完之后要准备安装my

最近刚入手了一枚树莓派,突发奇想打算做一个小型的家用服务器,在家7*24小时一直挂着。

树莓派搭建安装MySQL

真的是非常小,只有巴掌大,给树莓派买了一些配件,外壳、小风扇、2片散热片、32G SD卡、HDMI线,组装之后的效果。

树莓派搭建安装MySQL

安装之前可以先更新下本机软件

sudo apt-get update

然后就是等待了。等待完之后要准备安装mysql了,命令直接安装:

sudo apt-get install mysql-server

然后就是等待,在安装的过程中会提示你让你输入mysql的root密码,会提示两次。输入完成之后就会安装成功了。

然后输入如下命令进入mysql:

mysql -u root -p

然后会提示输入密码,,输入密码就可以进入mysql:

root@raspberrypi:/home/pi# mysql -u root -p
Enter 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>

可在电脑上面用 Navicat for MySQL 等软件远程连接树莓派数据库。

在(Raspberry Pi)树莓派上安装NodeJS 

Raspberry Pi 树莓派上安装Weston

用于Raspberry Pi 的Linux 操作系统已经可用

Raspberry Pi(树莓派)试用小记

Raspberry Pi(树莓派)的安装、配置IP及软件源等入门

本文永久更新链接地址

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template