openEuler24.03 LTS下安装MySQL8.0.42

目录

前提步骤

删除原有mysql及maridb数据库

安装MySQL

启动MySQL

启动查看MySQL状态

设置MySQL开机自启动

查看登录密码

登录MySQL

修改密码及支持远程连接

远程连接MySQL


前提步骤

拥有openEuler24.03 LTS环境,可参考:Vmware下安装openEuler24.03 LTS

删除原有mysql及maridb数据库

如果原来有mysql或maridb数据库,请先备份数据,再进行删除操作。

$ sudo rpm -qa | grep -i 'mysql\|mariadb' | xargs -n1 sudo rpm -e --nodeps 2>/dev/null$ sudo rm -rf /var/lib/mysql* /var/log/mysql /usr/lib64/mysql /etc/my.cnf* /usr/my.cnf

操作过程如下

[liang@node1 ~]$ sudo rpm -qa | grep -i 'mysql\|mariadb' | xargs -n1 sudo rpm -e --nodeps 2>/dev/null
[liang@node1 ~]$ sudo rm -rf /var/lib/mysql* /var/log/mysql /usr/lib64/mysql /etc/my.cnf* /usr/my.cnf

安装MySQL

直接使用yum命令安装mysql服务

$ sudo yum install -y mysql-server

操作过程如下

[liang@node1 ~]$ sudo yum install -y mysql-server
OS                                                  2.0 kB/s | 2.1 kB     00:01
everything                                           13 kB/s | 2.7 kB     00:00
EPOL                                                 12 kB/s | 2.3 kB     00:00
debuginfo                                            10 kB/s | 2.2 kB     00:00
source                                              9.3 kB/s | 2.6 kB     00:00
update                                              8.0 kB/s | 2.2 kB     00:00
update-source                                        11 kB/s | 2.2 kB     00:00
Dependencies resolved.
====================================================================================Package                       Arch    Version                    Repository   Size
====================================================================================
Installing:mysql-server                  x86_64  8.0.42-1.oe2403sp1         update       32 M
Installing dependencies:abseil-cpp                    x86_64  20230802.1-6.oe2403sp1     update      508 kcheckpolicy                   x86_64  3.5-1.oe2403sp1            OS          293 kmecab                         x86_64  0.996-2.oe2403sp1          everything  375 kmysql                         x86_64  8.0.42-1.oe2403sp1         update       13 Mmysql-common                  x86_64  8.0.42-1.oe2403sp1         update       26 kmysql-config                  x86_64  8.0.42-1.oe2403sp1         update      6.5 kmysql-errmsg                  x86_64  8.0.42-1.oe2403sp1         update      574 kmysql-selinux                 noarch  1.0.10-1.oe2403sp1         everything   31 kpolicycoreutils-python-utils  noarch  3.5-3.oe2403sp1            OS           22 kprotobuf-lite                 x86_64  25.1-7.oe2403sp1           OS          215 kpython3-IPy                   noarch  1.01-2.oe2403sp1           OS           44 kpython3-audit                 x86_64  1:3.1.2-7.oe2403sp1        OS           76 kpython3-libselinux            x86_64  3.5-3.oe2403sp1            OS          174 kpython3-libsemanage           x86_64  3.5-1.oe2403sp1            OS           71 kpython3-policycoreutils       noarch  3.5-3.oe2403sp1            OS          2.2 Mpython3-setools               x86_64  4.4.3-1.oe2403sp1          OS          657 kTransaction Summary
====================================================================================
Install  17 PackagesTotal download size: 51 M
Installed size: 263 M
Downloading Packages:
(1/17): policycoreutils-python-utils-3.5-3.oe2403sp  85 kB/s |  22 kB     00:00
(2/17): python3-IPy-1.01-2.oe2403sp1.noarch.rpm     382 kB/s |  44 kB     00:00
(3/17): checkpolicy-3.5-1.oe2403sp1.x86_64.rpm      715 kB/s | 293 kB     00:00
(4/17): protobuf-lite-25.1-7.oe2403sp1.x86_64.rpm   445 kB/s | 215 kB     00:00
(5/17): python3-libselinux-3.5-3.oe2403sp1.x86_64.r 2.0 MB/s | 174 kB     00:00
(6/17): python3-audit-3.1.2-7.oe2403sp1.x86_64.rpm  132 kB/s |  76 kB     00:00
(7/17): python3-libsemanage-3.5-1.oe2403sp1.x86_64. 102 kB/s |  71 kB     00:00
(8/17): mecab-0.996-2.oe2403sp1.x86_64.rpm          1.3 MB/s | 375 kB     00:00
(9/17): mysql-selinux-1.0.10-1.oe2403sp1.noarch.rpm 496 kB/s |  31 kB     00:00
(10/17): python3-policycoreutils-3.5-3.oe2403sp1.no 1.8 MB/s | 2.2 MB     00:01
(11/17): python3-setools-4.4.3-1.oe2403sp1.x86_64.r 765 kB/s | 657 kB     00:00
(12/17): mysql-common-8.0.42-1.oe2403sp1.x86_64.rpm 111 kB/s |  26 kB     00:00
(13/17): mysql-config-8.0.42-1.oe2403sp1.x86_64.rpm 120 kB/s | 6.5 kB     00:00
(14/17): abseil-cpp-20230802.1-6.oe2403sp1.x86_64.r 614 kB/s | 508 kB     00:00
(15/17): mysql-errmsg-8.0.42-1.oe2403sp1.x86_64.rpm 1.7 MB/s | 574 kB     00:00
(16/17): mysql-8.0.42-1.oe2403sp1.x86_64.rpm        963 kB/s |  13 MB     00:14
(17/17): mysql-server-8.0.42-1.oe2403sp1.x86_64.rpm 1.7 MB/s |  32 MB     00:19
------------------------------------------------------------------------------------
Total                                               2.3 MB/s |  51 MB     00:22
retrieving repo key for OS unencrypted from http://repo.openeuler.org/openEuler-24.03-LTS-SP1/OS/x86_64/RPM-GPG-KEY-openEuler
OS                                                  4.9 kB/s | 3.0 kB     00:00
Importing GPG key 0xB675600B:Userid     : "openeuler <openeuler@compass-ci.com>"Fingerprint: 8AA1 6BF9 F2CA 5244 010D CA96 3B47 7C60 B675 600BFrom       : http://repo.openeuler.org/openEuler-24.03-LTS-SP1/OS/x86_64/RPM-GPG-KEY-openEuler
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                            1/1Installing       : python3-libselinux-3.5-3.oe2403sp1.x86_64                 1/17Installing       : mysql-config-8.0.42-1.oe2403sp1.x86_64                    2/17Installing       : mysql-common-8.0.42-1.oe2403sp1.x86_64                    3/17Installing       : abseil-cpp-20230802.1-6.oe2403sp1.x86_64                  4/17Installing       : protobuf-lite-25.1-7.oe2403sp1.x86_64                     5/17Installing       : mysql-8.0.42-1.oe2403sp1.x86_64                           6/17Installing       : mysql-errmsg-8.0.42-1.oe2403sp1.x86_64                    7/17Installing       : python3-libsemanage-3.5-1.oe2403sp1.x86_64                8/17Installing       : python3-setools-4.4.3-1.oe2403sp1.x86_64                  9/17Installing       : mecab-0.996-2.oe2403sp1.x86_64                           10/17Running scriptlet: mecab-0.996-2.oe2403sp1.x86_64                           10/17Installing       : python3-audit-1:3.1.2-7.oe2403sp1.x86_64                 11/17Installing       : python3-IPy-1.01-2.oe2403sp1.noarch                      12/17Running scriptlet: checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17Installing       : checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17Running scriptlet: checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17Installing       : python3-policycoreutils-3.5-3.oe2403sp1.noarch           14/17Installing       : policycoreutils-python-utils-3.5-3.oe2403sp1.noarch      15/17Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17Installing       : mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17
libsemanage.semanage_direct_install_info: Overriding mysql module at lower priority 100 with module at priority 200.Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17Installing       : mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  17/17Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17
/usr/lib/tmpfiles.d/dbus.conf:13: Line references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containers; please update the tmpfiles.d/ drop-in file accordingly.Verifying        : checkpolicy-3.5-1.oe2403sp1.x86_64                        1/17Verifying        : policycoreutils-python-utils-3.5-3.oe2403sp1.noarch       2/17Verifying        : protobuf-lite-25.1-7.oe2403sp1.x86_64                     3/17Verifying        : python3-IPy-1.01-2.oe2403sp1.noarch                       4/17Verifying        : python3-audit-1:3.1.2-7.oe2403sp1.x86_64                  5/17Verifying        : python3-libselinux-3.5-3.oe2403sp1.x86_64                 6/17Verifying        : python3-libsemanage-3.5-1.oe2403sp1.x86_64                7/17Verifying        : python3-policycoreutils-3.5-3.oe2403sp1.noarch            8/17Verifying        : python3-setools-4.4.3-1.oe2403sp1.x86_64                  9/17Verifying        : mecab-0.996-2.oe2403sp1.x86_64                           10/17Verifying        : mysql-selinux-1.0.10-1.oe2403sp1.noarch                  11/17Verifying        : abseil-cpp-20230802.1-6.oe2403sp1.x86_64                 12/17Verifying        : mysql-8.0.42-1.oe2403sp1.x86_64                          13/17Verifying        : mysql-common-8.0.42-1.oe2403sp1.x86_64                   14/17Verifying        : mysql-config-8.0.42-1.oe2403sp1.x86_64                   15/17Verifying        : mysql-errmsg-8.0.42-1.oe2403sp1.x86_64                   16/17Verifying        : mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17Installed:abseil-cpp-20230802.1-6.oe2403sp1.x86_64checkpolicy-3.5-1.oe2403sp1.x86_64mecab-0.996-2.oe2403sp1.x86_64mysql-8.0.42-1.oe2403sp1.x86_64mysql-common-8.0.42-1.oe2403sp1.x86_64mysql-config-8.0.42-1.oe2403sp1.x86_64mysql-errmsg-8.0.42-1.oe2403sp1.x86_64mysql-selinux-1.0.10-1.oe2403sp1.noarchmysql-server-8.0.42-1.oe2403sp1.x86_64policycoreutils-python-utils-3.5-3.oe2403sp1.noarchprotobuf-lite-25.1-7.oe2403sp1.x86_64python3-IPy-1.01-2.oe2403sp1.noarchpython3-audit-1:3.1.2-7.oe2403sp1.x86_64python3-libselinux-3.5-3.oe2403sp1.x86_64python3-libsemanage-3.5-1.oe2403sp1.x86_64python3-policycoreutils-3.5-3.oe2403sp1.noarchpython3-setools-4.4.3-1.oe2403sp1.x86_64Complete!

启动MySQL

$ sudo systemctl start mysqld

启动查看MySQL状态

[liang@node1 ~]$ sudo systemctl status mysqld
● mysqld.service - MySQL 8.0 database serverLoaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; preset: disa>Active: active (running) since Wed 2025-05-07 22:59:59 CST; 3min 7s agoProcess: 2811 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status>Process: 2834 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mysqld.service (co>Main PID: 2912 (mysqld)Status: "Server is operational"Tasks: 37 (limit: 21353)Memory: 473.3M ()CGroup: /system.slice/mysqld.service└─2912 /usr/libexec/mysqld --basedir=/usr5月 07 22:59:54 node1 systemd[1]: Starting MySQL 8.0 database server...
5月 07 22:59:55 node1 mysql-prepare-db-dir[2834]: Initializing MySQL database
5月 07 22:59:59 node1 systemd[1]: Started MySQL 8.0 database server.
lines 1-15/15 (END)

看到Active: active (running),说明mysql服务正常启动。

q键返回命令行。

设置MySQL开机自启动

[liang@node1 ~]$ sudo systemctl enable mysqld
Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.

查看登录密码

[liang@node1 ~]$ sudo cat /var/log/mysql/mysqld.log
2025-05-07T14:59:55.041414Z 0 [System] [MY-013169] [Server] /usr/libexec/mysqld (mysqld 8.0.42) initializing of server in progress as process 2869
2025-05-07T14:59:55.046791Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-05-07T14:59:55.301970Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-05-07T14:59:55.986953Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2025-05-07T14:59:58.680076Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.42) starting as process 2912
2025-05-07T14:59:58.689207Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-05-07T14:59:59.073809Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-05-07T14:59:59.317924Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-05-07T14:59:59.317946Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-05-07T14:59:59.340722Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/lib/mysql/mysqlx.sock
2025-05-07T14:59:59.340759Z 0 [System] [MY-010931] [Server] /usr/libexec/mysqld: ready for connections. Version: '8.0.42'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution.

输出看到[Server] root@localhost is created with an empty password !,说明初始密码为空。

登录MySQL

$ mysql -uroot -p

提示输入密码,因为是空密码,不需要输入任何信息直接回车,进入mysql命令行。

操作过程如下

[liang@node1 ~]$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.42 Source distributionCopyright (c) 2000, 2025, Oracle and/or its affiliates.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>

测试使用MySQL命令

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)mysql> quit;
Bye
[liang@node1 ~]$

修改密码及支持远程连接

mysql> set password='000000';
mysql> update mysql.user set host='%' where user='root';
mysql> flush privileges;

操作过程如下

[liang@node1 ~]$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.42 Source distributionCopyright (c) 2000, 2025, Oracle and/or its affiliates.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> set password='000000';
Query OK, 0 rows affected (0.01 sec)mysql> update mysql.user set host='%' where user='root';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)mysql> quit;
Bye
[liang@node1 ~]$

使用新密码登录

[liang@node1 ~]$ mysql -uroot -p000000
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.42 Source distributionCopyright (c) 2000, 2025, Oracle and/or its affiliates.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>

远程连接MySQL

使用navicat等工具远程连接mysql

完成!enjoy it!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.pswp.cn/diannao/83517.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

idea 保证旧版本配置的同时,如何从低版本升到高版本

文章目录 前言idea 保证旧版本配置的同时,如何从低版本升到高版本1. 备份项目2. 下载最新的idea3. 安装安装包4. 导入idea2019旧配置5. 验证前言 如果您觉得有用的话,记得给博主点个赞,评论,收藏一键三连啊,写作不易啊^ _ ^。   而且听说点赞的人每天的运气都不会太差,…

填坑记: 古董项目Apache POI 依赖异常排除

当你看到NoSuchMethodError的时候&#xff0c;不要慌&#xff0c;深呼吸&#xff0c;这可能只是JAR包版本的问题… 引子&#xff1a;一个平静的周二下午 那是一个看似平常的周二下午&#xff0c;系统运行良好&#xff0c;开发团队在有条不紊地推进着新功能的开发。突然&#x…

CAPL Class: TcpSocket (此类用于实现 TCP 网络通信 )

目录 Class: TcpSocketacceptopenclosebindconnectgetLastSocketErrorgetLastSocketErrorAsStringlistenreceivesendsetSocketOptionshutdown函数调用的基本流程服务器端的基本流程客户端的基本流程Class: TcpSocket学习笔记。来自CANoe帮助文档。 Class: TcpSocket accept /…

微信小程序的开发及问题解决

HttpClient 测试例子 SpringBootTest public class HttpClientTest {/*** 测试通过httpclient发送get方式的请求*/Testpublic void testGET() throws IOException {//创建httpclient对象CloseableHttpClient httpClient HttpClients.createDefault();//创建请求对象HttpGet ht…

foreach中使用await的问题

目录 1.说明 2.示例 3.解决方案 1.说明 在foreach中调用异步方法&#xff0c;即使使用了await&#xff0c;不会依次执行每个异步任务&#xff0c;也就是说Array.prototype.forEach不会等待 Promise 完成&#xff0c;即使你在回调函数中返回一个 Promise&#xff0c;forEach …

Linux调试生成核心存储文件

1.核心存储文件配置&#xff1a; 不知道理解对不对&#xff0c;Linux中的核心存储文件的配置是在/proc/sys/kernel/core_pattern中的&#xff0c;使用 cat /proc/sys/kernel/core_pattern # 打印出 |/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E表示核…

Compose笔记(二十三)--多点触控

这一节主要了解一下Compose中多点触控&#xff0c;在Jetpack Compose 中&#xff0c;多点触控处理需要结合Modifier和手势API来实现&#xff0c;一般通过组合 pointerInput、TransformableState 和 TransformModifier 来创建支持缩放、旋转和平移的组件。 一、 API 1. Pointer…

【Java ee初阶】HTTP(4)

构造HTTP请求 1&#xff09;开发中&#xff0c;前后端交互。浏览器运行的网页中&#xff0c;构造出HTTP请求 2&#xff09;调试阶段&#xff0c;通过构造HTTP请求测试服务器 朴素的方案&#xff1a; 通过tcp socket 的方式构造HTTP请求 按照HTTP请求格式&#xff0c;往TCP…

STM32 __main

STM32开发中__main与用户main()函数的本质区别及工作机制 在STM32开发中&#xff0c;__main和用户定义的main()函数是启动过程中的两个关键节点&#xff0c;分别承担运行时初始化和用户程序入口的职责。以下是它们的核心差异及协作机制&#xff1a; 一、定义与层级差异 ​__ma…

什么是PMBus

一、PMBus的定义与背景 PMBus&#xff08;Power Management Bus&#xff0c;电源管理总线&#xff09; 是一种基于SMBus&#xff08;System Management Bus&#xff09;的开放标准数字通信协议&#xff0c;专为电源设备的监控、配置和控制设计。由PMBus联盟&#xff08;现并入…

Python OOP核心技巧:如何正确选择实例方法、类方法和静态方法

Python方法类型全解析&#xff1a;实例方法、类方法与静态方法的使用场景 一、三种方法的基本区别二、访问能力对比表三、何时使用实例方法使用实例方法的核心场景&#xff1a;具体应用场景&#xff1a;1. 操作实例属性2. 对象间交互3. 实现特定实例的行为 四、何时使用类方法使…

业务中台-典型技术栈选型(微服务、容器编排、分布式数据库、消息队列、服务监控、低代码等)

在企业数字化中台建设中&#xff0c;业务中台是核心支撑平台&#xff0c;旨在通过技术手段将企业核心业务能力抽象、标准化和复用&#xff0c;以快速响应前端业务需求。其核心技术流涉及从业务抽象到服务化、治理和持续优化的全流程。以下是业务中台建设中的核心技术体系及关键…

期望是什么:(无数次的均值,结合概率)21/6=3.5

https://seeing-theory.brown.edu/basic-probability/cn.html 期望是什么:(无数次的均值,结合概率)21/6=3.5 一、期望(数学概念) 在概率论和统计学中,**期望(Expectation)**是一个核心概念,用于描述随机变量的长期平均取值,反映随机变量取值的集中趋势。 (一…

matlab官方免费下载安装超详细教程2025最新matlab安装教程(MATLAB R2024b)

文章目录 准备工作MATLAB R2024b 安装包获取详细安装步骤1. 文件准备2. 启动安装程序3. 配置安装选项4. 选择许可证文件5. 设置安装位置6. 选择组件7. 开始安装8. 完成辅助设置 常见问题解决启动失败问题 结语 准备工作 本教程将帮助你快速掌握MATLAB R2024b的安装技巧&#x…

第3章 自动化测试:从单元测试到硬件在环(HIL)

在前两章中,我们已完成从环境搭建到流水线编译的自动化配置。为了真正保障软件质量、降低回归风险,本章将聚焦测试自动化,涵盖从最基础的单元测试,到集成测试,再到硬件在环(Hardware-in-the-Loop, HIL)测试的全流程。通过脚本驱动、测试报告可视化和与 CI 平台深度集成,…

信息收集+初步漏洞打点

目标&#xff1a;理解信息收集在渗透测试中的意义&#xff0c;熟悉常用工具用法&#xff0c;完成基本打点测试 一.理论学习&#xff1a; 模块内容说明信息收集分类主动信息收集 vs 被动信息收集目标发现子域名、IP、端口、子站点、目录、接口技术指纹识别Web框架&#xff08;如…

uniapp+vue3开发项目之引入vuex状态管理工具

前言&#xff1a; 我们在vue2的时候常用的状态管理工具就是vuex&#xff0c;vue3开发以后&#xff0c;又多了一个pinia的选项&#xff0c;相对更轻便&#xff0c;但是vuex也用的非常多的&#xff0c;这里简单说下在uni-app中vuex的使用。 实现步骤&#xff1a; 1、安装&#x…

浅谈“量子计算应用:从基础原理到行业破局”

量子计算应用:从基础原理到行业破局 引言:量子计算为何成为科技革命新引擎? 量子计算利用量子力学原理(叠加态、纠缠态、量子干涉)突破经典计算的极限,在特定领域可实现指数级加速。根据中研普华预测,2025年全球量子计算市场规模将突破80亿美元,2035年可达8117亿美元。…

UNiAPP地区选择

<template> <view class"container"> <!-- 左侧地区列表 --> <scroll-view class"left-list" scroll-y :scroll-into-view"currentLetterId" scroll-with-animation scroll"…

嵌入式硬件篇---CAN

文章目录 前言1. CAN协议基础1.1 物理层特性差分信号线终端电阻通信速率总线拓扑 1.2 帧类型1.3 数据帧格式 2. STM32F103RCT6的CAN硬件配置2.1 硬件连接2.2 CubeMX配置启用CAN1模式波特率引脚分配过滤器配置&#xff08;可选&#xff09; 3. HAL库代码实现3.1 CAN初始化3.2 发…