当前位置:网站首页>Installing MySQL databases in FreeBSD
Installing MySQL databases in FreeBSD
2022-06-26 01:30:00 【Linux_ Huazai】
| MySQL Is an open source relational database MySQL Can be in Linux、Unix and Windows Running in the system , It can be used in a variety of applications . |
Environmental Science
FreeBSD 13-RELEASE
modify pkg Source
You need to create /usr/local/etc/pkg/repos Catalog , Then create FreeBSD.conf The configuration file , And turn off the default source , Then add the domestic software source .
[email protected]:~ # mkdir -p /usr/local/etc/pkg/repos [email protected]:~ # vi /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { enabled: no } ustc: { url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg//${ABI}/quarterly", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes }

to update pkg Source :
[email protected]:~ # pkg update -f Updating ustc repository catalogue... Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 6.5MB/s 00:01 Processing entries: 100% ustc repository update completed. 30371 packages processed. All repositories are up to date.

install MySQL database
Search for pkg What versions are there in the source mysql:
[email protected]:~ # pkg search "^mysql"

The following installation mysql80 edition :
[email protected]:~ # pkg install -y mysql80-server mysql80-client

function MySQL
Next you will run the following command , This will MySQL Services added to /etc/rc.conf In profile , And start up mysql.
[email protected]:~ # sysrc mysql_enable=yes mysql_enable: -> yes

start-up mysql service :
[email protected]:~ # service mysql-server start Starting mysql.
View service status and mysql Listening port :
[email protected]:~ # service mysql-server status mysql is running as pid 2194. [email protected]:~ # sockstat -4l USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS mysql mysqld 2194 19 tcp46 *:33060 *:* mysql mysqld 2194 24 tcp4 127.0.0.1:3306 *:* root sshd 802 4 tcp4 *:22 *:* root sendmail 781 3 tcp4 127.0.0.1:25 *:* root syslogd 709 7 udp4 *:514 *:*

Verify the installation
To verify the installation , You can use root Log in as and use the following command Check the database version :
[email protected]:~ # mysqladmin -u root -p version Enter password: mysqladmin Ver 8.0.25 for FreeBSD13.0 on amd64 (Source distribution) Copyright (c) 2000, 2021, 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. Server version 8.0.25 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 4 min 16 sec Threads: 2 Questions: 6 Slow queries: 0 Opens: 138 Flush tables: 3 Open tables: 54 Queries per second avg: 0.023

summary
So far MySQL 8 Installed and running on FreeBSD 13 Yes .
Original address of this article : How to be in FreeBSD 13 Install in MySQL database | 《Linux It's time to learn 》 edit : Add treasure , Auditor : Add treasure
边栏推荐
- shell正则表达式
- Cartoon shader
- vite打包构建时 @charset utf-8警告问题处理;
- 2022安徽省安全员C证考试练习题模拟考试平台操作
- Multiple interface calls, using promise all、Promise. Race and promise any
- Flex & bison start
- ETCD数据库源码分析——集群间网络层服务端接口
- Simple deepclone
- 走 迷 宫
- Endnote IEEE Transactions on industrial electronics/tie/tpel reference format template
猜你喜欢

Technical introduction - detailed explanation of chip manufacturing process

Template engine - FreeMarker first experience

生信周刊第34期
![[flower carving experience] 11 start esp32c3](/img/ff/d7c266893ef4ef70c6536085927e0e.jpg)
[flower carving experience] 11 start esp32c3
![[Excel知识技能] Excel数据类型](/img/f6/e1ebe033d1a2a266ebda00b10098ed.png)
[Excel知识技能] Excel数据类型

【花雕体验】11 上手ESP32C3

计算机网络知识总结(面试)

Design and process analysis of anti backflow circuit for MOS transistor

Digital circuit - adder

Case: drawing Matplotlib dynamic graph
随机推荐
Etcd database source code analysis -- inter cluster network layer server interface
Flex & bison start
SPI protocol
JSON introduction
Idea configuration
[excel knowledge and skills] Excel data type
MySQL book borrowing system project database creation TABLE statement (combined primary key and foreign key settings)
Web information collection, naked runners on the Internet
The kth largest element in the array
新库上线 | CnOpenDataA股上市公司IPO申报发行文本数据
走 迷 宫
【花雕体验】11 上手ESP32C3
数字电路——加法器
Shengxin weekly issue 33
接口的幂等性——详细谈谈接口的幂等即解决方案
网上开通证券账户安全吗 证券网上开户
填鸭数据即时收集解决方案资源
Essence and thoughts of 30 lectures on product thinking
Region of Halcon: generation of multiple regions (4)
原生DOM与虚拟DOM