当前位置:网站首页>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
输入服务器地址和数据库名
下载驱动程序
完成数据库连接
边栏推荐
- Teach you how to write selenium test cases
- 20220607 fell below the recommended retail price, and the GPU market is moving towards oversupply
- VR全景添加对比功能,让差异化效果展示更直观!
- sql是否走索引
- Go redis connection pool
- Code shoe set - mt3111 · assignment
- NBI visual platform quick start tutorial (V) introduction to editor functions and operations
- Task01:初识数据库与SQL(笔记1)
- 基于STM32单片机的测温仪
- Is it safe to open an account for mobile phone stock trading!?
猜你喜欢
JVM常见问题
sql连续登录问题
年复一年,为什么打破数据孤岛还是企业发展的首要任务
VR云展厅如何给线下实体带来活力?有哪些功能?
2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
为什么越来越多的人选择云渲染?
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
小小笔记-整型提升(C语言)
实现各种效果和功能的按钮,读这篇文章就够了
Friends in Guangzhou can join us if they have the opportunity
随机推荐
How JS correctly clears all child elements under an element
Year after year, why is breaking the data island still the primary task of enterprise development
Practical application of "experience" crawler in work "theory"
Vs common shortcut key commands
究竟有哪些劵商推荐?另外,手机开户安全么?
【DesignMode】单例模式(singleton pattern)
MySQL function to get the full path
VR全景添加对比功能,让差异化效果展示更直观!
将 EMQX Cloud 数据通过公网桥接到 AWS IoT
Teach you how to write selenium test cases
mysql中union和union all的区别
基于STM32单片机的测温仪
JVM FAQs
Why do more and more people choose cloud rendering?
VoIP Push 在海外音视频业务中的应用
Entropy - conditional entropy - joint entropy - mutual information - cross entropy
哪个券商佣金的佣金最低?另外,手机开户安全么?
Redis beginner to master 01
设计电商秒杀系统
Business Intelligence BI and business management decision-making thinking 4: business cost analysis