debian10树莓派4安装mysql_树莓派安装MySQL

匿名用户

1级

2019-07-19 回答

+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema |+--------------------+

rows in set (0.00 sec)

3:Welcome to the MySQL monitor. Commands end with 。

2. Other names may be trademarks of their respective

owners.Type 'help. 测试MySQL

通过以下命令运行MySQL的命令提示系统;\h' for help. Type ',要想开始插入数据,首先需要建立新的数据库和表单,并输入在安装过程中设置的密码:

mysql -u root -pEnter password;Query OK, 1 row affected (0; SHOW databases; or \g.Your MySQL connection id is 47Server version.Oracle is a registered trademark of Oracle Corporation and/or its

affiliates: 5.5.41-0+wheezy1 (Debian)Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved;' or '\c' to clear the current input statement.

查看当前已建立的数据库:

mysql&gt,存放在名为"sensordb"的数据库中。使用以下命令建立数据库:

mysql> SHOW DATABASES. 创建一个新的数据库和表单

以上数据库都是系统建立的数据库。这里假设要实现一个CPU温度记录的功能; CREATE DATABASE sensordb.00 sec)

查看数据库是否建立成功:

mysql&gt输入 root的 密码。

1. 安装MySQL

使用管理员权限运行apt-get获取最新的MySQL及Python编程接口(之后用于数据库编程):

$ sudo apt-get install mysql-server python-mysqldb

安装过程中需要输入root管理员的密码,该密码之后用于访问数据库系统

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值