采用FreeBSD提供的ports安装第1步# cd /usr/ports/databases/mysql40-server/第2步#make install根据你的网络速度情况,可能要等
首页 → 数据库技术
背景:
阅读新闻
FreeBSD 7.2下安装MySQL 4.0
[日期:2012-02-05] 来源:Linux社区 作者:张建波 [字体:]
采用FreeBSD提供的ports安装
第1步
# cd /usr/ports/databases/mysql40-server/
第2步
#make install
根据你的网络速度情况,可能要等10多分钟
...
第3步:安装数据库
# /usr/local/bin/mysql_install_db
第4步:
#chown -R mysql /var/db/mysql
第5步:启动mysql
#/usr/local/bin/mysqld_safe &
第6步:设置root用户密码
#/usr/local/bin/mysqladmin -u root password '123456'
第7步:登录测试一下root用户
#mysql -u root -p
第8步:设置mysql在系统启动时自动启动
#vi /etc/rc.conf
按a键在最后加上:
mysql_enable="YES"
例如我的配置文件:
# Created: Mon Apr 19 19:36:56 2010
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.192.1"
hostname="Squid_CA.NIC"
ifconfig_le0="inet 192.168.192.33 netmask 255.255.255.0"
keymap="us.iso"
linux_enable="YES"
sshd_enable="YES"
mysql_enable="YES"
Java获取Oracle中CLOB字段转换成String
Oracle中的动态SQL
相关资讯 FreeBSD MySQL教程 FreeBSD安装
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。
Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

DALL-E 3 was officially introduced in September of 2023 as a vastly improved model than its predecessor. It is considered one of the best AI image generators to date, capable of creating images with intricate detail. However, at launch, it was exclus

本站11月21日消息,经过几次发布延迟后,FreeBSD14.0-RELEASE现已正式发布。FreeBSD14是该操作系统项目支持32位系统的最后一个大版本,FreeBSD15将放弃对32位硬件平台的支持,不过FreeBSD1564位系统将保留对运行32位二进制文件的支持。首先,FreeBSD14添加了一个新的“fwget”实用程序来获取固件包,该程序目前可以获取英特尔和AMDGPU的固件。其次,FreeBSD14迎来多项功能更新,包括用dma取代sendmail,OpenZFS2.2提供最新

PHP是一种广泛应用于web开发的语言,它的跨平台性能在不同的系统中都得到了广泛认可。其中,FreeBSD系统也是一个广泛使用的操作系统,它是一个自由、开放源代码的UNIX操作系统。在本文中,我们将讨论PHP在FreeBSD系统中的应用方法及常见问题解答。一、PHP在FreeBSD中的应用方法首先,我们需要在FreeBSD系统中

The AI-enabled Deepin Linux distro has just received its latest update, dubbed V23 RC2. This version of Deepin comes with a number of package updates and new features. But it's not all about the features; the look and feel are the main spotlight of t

在Linux系统中,free命令是一个重要的系统工具,用于监控系统内存的使用情况。它提供了查看内存总量、已使用量和可用量等信息的基础用法。此外,还有一些高级用法,如显示详细内存信息、单位转换和实时监控内存等功能。free命令的基础用法:free命令的基本语法如下:free[选项]下面是一些常用的选项:-h:以人类可读的方式显示内存大小。-b:以字节为单位显示内存大小。-k:以千字节为单位显示内存大小。-m:以兆字节为单位显示内存大小。-g:以吉字节为单位显示内存大小。示例代码:让我们通过示例代码

在Linux系统中,有多种命令可用于检查系统的内存使用情况,以帮助识别潜在的内存耗尽问题。以下是五个常用命令,可用于检查Linux系统内存使用情况的详细说明:free命令:free命令用于显示系统内存的使用和空闲情况。运行free命令可以获取内存总量、已使用内存、空闲内存以及缓存和缓冲区的使用情况。命令示例:free-h,该命令将以人类可读的格式显示内存使用量。top命令:top命令是一个动态监视系统资源的实用程序,其中包括内存的使用情况。运行top命令后,可以查看系统中占用最多内存的进程以及内

MySQL是一个开放源码的小型关联式数据库管理系统,目前MySQL被广泛地应用在Internet上的中小型网站中。由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,许多中小型网站为了降低网站总体拥有成本而选择了MySQL作为网站数据库。环境FreeBSD13-RELEASE修改pkg源需要先创建/usr/local/etc/pkg/repos目录,然后创建FreeBSD.conf配置文件,并将默认源关闭,然后添加国内软件源。root@freebsd:~#mkdir-p/usr/loc

For many gamers, next month marks the beginning of this year’s gaming season, even though fall is still a few more weeks away. Fittingly, PlayStation owners with an active PS Plus subscription will soon be able to grab three games for their PlayStati


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver Mac version
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor