当前位置:网站首页>mysql统计账单信息(上):mysql安装及客户端DBeaver连接使用
mysql统计账单信息(上):mysql安装及客户端DBeaver连接使用
2022-06-30 18:49:00 【51CTO】
一、背景
有一个物联网卡的项目需要分账,会涉及很多excel表格,运营商出具的明细表有卡的相关信息比如卡号、流量使用情况、费用、开卡日期等,但是没有分公司字段,现在需要卡号和分公司对应表关联,算出每家分公司的账单。这里使用mysql来实现,本文记录测试环境安装mysql5.7.37过程及遇到的报错问题解决。
二、Mysql安装
1.Repository下载
下载并安装MySQL官方的 Yum Repository

2.Mysql安装源查看
查看当前可用的Mysql安装源

3.安装Mysql数据库


发现报错信息:“mysql-community-libs-5.7.37-1.el7.x86_64.rpm 的公钥尚未安装”、“败的软件包是:mysql-community-libs-5.7.37-1.el7.x86_64 GPG 密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql”
4.问题解决
修改mysql-community.repo,将gpgcheck的值由1更改为0
5.再次安装

安装完成
三、启动Mysql及重置密码
1.启动Mysql

启动mysql并设置为开机自启
2.登陆Mysql
安装好后,会在my.cnf文件中自动生成一个密码,查看并登陆

3.密码规则修改
默认密码规则太复杂不容易记忆,现修改

4.密码修改

登录数据库后需首先重置密码才能进行后续操作
至此完成mysql安装,后面可以愉快的使用了。
5.创建数据库zd
6.创建用户loong576

创建用户loong576并授予访问数据库zd的权限,然后重启数据库
7.连接授权
不然报错:

8.访问授权

不然报错: Access denied for user ‘loong576’@‘%’ to database ‘zd’

四、客户端DBeaver连接
1.软件下载
登陆官网下载链接https://dbeaver.io/download/下载软件
2.创建连接

打开软件,选择MySQL


输入服务器地址和数据库名

下载驱动程序
完成数据库连接
边栏推荐
- await和async
- 项目配置了eslint,编辑器没有关闭eslint功能的情况下,eslint没有生效
- 商业智能BI与业务管理决策思维之四:业务成本分析
- [jetsonnano] [tutorial] [introductory series] [i] how to enable VNC sharing
- Redis beginner to master 01
- MQ组成部分(2022.5.16-5.22)
- Whether the SQL is indexed
- Develop those things: how to add text watermarks to videos?
- ArcGIS无插件加载(无偏移)天地图
- Gateway服务网关
猜你喜欢

Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field

Nodejs installation and introduction

The project is configured with eslint. When the editor does not close the eslint function, the eslint does not take effect

JVM常见问题

How to use the low code platform of the Internet of things for service management?

图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证

BeanUtils.copyProperties() 对比 mapstruct

Buttons to achieve various effects and functions. Reading this article is enough

说实话ThreadLocal真不是啥高级的东西

虚拟主机什么时候适合更换成云主机?
随机推荐
20220607 fell below the recommended retail price, and the GPU market is moving towards oversupply
程序员女友给我做了一个疲劳驾驶检测
Is it safe to open an account for mobile phone stock trading!?
Promise从认识到使用
英语没学好到底能不能做coder,别再纠结了先学起来
How to improve the three passive situations in data analysis
【UML】UML类图
VoIP Push 在海外音视频业务中的应用
为什么越来越多的人选择云渲染?
JVM常见问题
小小笔记-整型提升(C语言)
A detailed explanation of the implementation principle of go Distributed Link Tracking
Four tips tell you how to use SMS to promote business sales?
Go语言学习教程(十)
Connect to lab server
基于STM32单片机的测温仪
小球大小随机,随机运动碰撞
测试必备工具 —— Postman实战教程
#夏日挑战赛#【FFH】HarmonyOS手机遥控Dayu开发板相机
Abaqus 2022软件安装包和安装教程