当前位置:网站首页>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
边栏推荐
- 通过电脑获取WIFI密码(只能连接过的WiFi)
- ETCD数据库源码分析——集群通信初始化
- Web信息收集,互联网上的裸奔者
- Development and monitoring of fusion experiment pulse power supply by LabVIEW
- Technical introduction - detailed explanation of chip manufacturing process
- 手机卡开户的流程是什么?网上开户是否安全么?
- MySQL book borrowing system project database creation TABLE statement (combined primary key and foreign key settings)
- --都市修炼手册之SQL-- 第一章 基础复习
- Simple deepclone
- Radio boxes are mutually exclusive and can be deselected at the same time
猜你喜欢

Return value is object type method call equals()

LabVIEW开发监控聚变实验脉冲电源

STM32 key development foundation

15 `bs对象.节点名称.节点名称.string` 获取嵌套节点内容

Remote incremental synchronization artifact Rsync

Oracle database startup backup preparation

通过电脑获取WIFI密码(只能连接过的WiFi)

Shell regular expression

Zhihuijia - full furniture function

Casually painted
随机推荐
开窍之问答
Simple deepclone
图文大师印章简易制作
Camera - 02 image sensor
C disk cleaning strategy of win10 system
生信周刊第34期
Online gadget sharing (updated from time to time, current quantity: 2)
C thread pool control semaphore
黑盒测试 — 测试用例 之 判定表法看这一篇就够了
Redis strings command
计算机网络知识总结(面试)
Mpu6050 reads the ID incorrectly and 0xd1 occurs (the correct ID should be 0x68 or 0x69). Solution.
containerd客户端比较
Solution to MySQL error code 2003
ETCD数据库源码分析——集群通信初始化
数据分析——切片器、数据透视表与数据透视图(职场必备)
leetcode 300. Longest Increasing Subsequence 最长递增子序列 (中等)
Idea configuration
JS reverse case: cracking login password
STM32GPIO