FreeBSD 7.2下安装MySQL 4.0
采用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号

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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

According to news from this site on November 21, after several release delays, FreeBSD14.0-RELEASE has now been officially released. FreeBSD14 is the last major version of the operating system project to support 32-bit systems. FreeBSD15 will give up support for 32-bit hardware platforms, but FreeBSD1564-bit systems will retain support for running 32-bit binaries. First, FreeBSD14 adds a new "fwget" utility to obtain firmware packages, which currently can obtain firmware for Intel and AMD GPUs. Secondly, FreeBSD14 ushered in a number of feature updates, including replacing sendmail with dma, and OpenZFS2.2 provides the latest

PHP is a language widely used in web development, and its cross-platform performance has been widely recognized in different systems. Among them, the FreeBSD system is also a widely used operating system. It is a free and open source UNIX operating system. In this article, we will discuss how to use PHP in FreeBSD systems and answer frequently asked questions. 1. Application method of PHP in FreeBSD First, we need to use PHP in FreeBSD system

In Linux systems, the free command is an important system tool used to monitor system memory usage. It provides basic usage to view information such as total memory, used amount, and available amount. In addition, there are some advanced uses, such as displaying detailed memory information, unit conversion, and real-time monitoring of memory. Basic usage of the free command: The basic syntax of the free command is as follows: free [options] Here are some commonly used options: -h: Display the memory size in a human-readable manner. -b: Display memory size in bytes. -k: Display memory size in kilobytes. -m: Display memory size in megabytes. -g: Display memory size in gigabytes. Sample Code: Let’s go through the sample code

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

In Linux systems, there are various commands you can use to check your system's memory usage to help identify potential memory exhaustion issues. Here are five commonly used commands that can be used to check the memory usage of Linux systems with detailed instructions: free command: The free command is used to display the usage and idle status of system memory. Run the free command to get the total memory, used memory, free memory, and cache and buffer usage. Command example: free -h, this command will display memory usage in human-readable format. top command: The top command is a utility that dynamically monitors system resources, including memory usage. After running the top command, you can view the processes that occupy the most memory in the system and the

In recent years, the trend of refactoring the Rust language has swept the development circle. Rust has received widespread attention for its advantages in safety, efficiency, and maintainability. Even the Windows and Linux kernels have introduced Rust support. This makes Rust one of the most popular programming languages among developers. FreeBSD developers are also currently weighing the pros and cons of using the Rust programming language in their base systems. According to the latest email message from the developers, the main disadvantage of including Rust in the FreeBSD base system is that the build time is doubled. Due to the need to compile the LLVM-based Rustc compiler and all the additional features of Rust, the system's build time will be approximately twice as long as it currently is. However, developers

MySQL is an open source small relational database management system. Currently, MySQL is widely used in small and medium-sized websites on the Internet. Due to its small size, fast speed, low total cost of ownership, and especially the characteristics of open source, many small and medium-sized websites choose MySQL as their website database in order to reduce the total cost of website ownership. Environment FreeBSD13-RELEASE To modify the pkg source, you need to first create the /usr/local/etc/pkg/repos directory, then create the FreeBSD.conf configuration file, close the default source, and then add the domestic software source. root@freebsd:~#mkdir-p/usr/loc
