CentOS5下MySQL源码安装方式
1、编译环境安装 uname -aLinux ha01 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linuxyum -y inst
首页 → 数据库技术
背景:
阅读新闻
CentOS5下MySQL源码安装方式
[日期:2011-04-03] 来源:Linux社区 作者:puwenhui [字体:]
1、编译环境安装
uname -a
Linux ha01 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
yum -y install gcc
yum install -y gcc-c++
2、mysql编译安装
[root@ha01 local]# tar -xvf mysql-5.1.54.tar.gz
[root@ha01 local]# groupadd mysql
[root@ha01 local]# useradd -g mysql mysql
[root@ha01 local]# ./configure --prefix=/usr/local/mysql --with-named-curses-libs=/usr/lib/libncursesw.so.5
[root@ha01 local]# cd mysql-5.1.54
[root@ha01 mysql-5.1.54]# make
[root@ha01 mysql-5.1.54]# make install
[root@ha01 mysql-5.1.54]# cp support-files/my-medium.cnf /etc/my.cnf
[root@ha01 mysql-5.1.54]# cp support-files/mysql.server /etc/init.d/mysql
[root@ha01 mysql-5.1.54]# chmod +x /etc/init.d/mysql
[root@ha01 mysql-5.1.54]# chkconfig --add mysql
[root@ha01 mysql-5.1.54]# cd /usr/local/mysql
[root@ha01 mysql]# bin/mysql_install_db --user=mysql
[root@ha01 mysql]# chown -R root .
[root@ha01 mysql]# chown -R mysql var
[root@ha01 mysql]# chgrp -R mysql .
[root@ha01 mysql]# bin/mysqld_safe --user/mysql &
[root@ha01 mysql]# ./bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.54-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.01 sec)
3、启停服务
[root@ha01 mysql-5.1.54]# /etc/init.d/mysql stop
Shutting down MySQL. [确定]
[root@ha01 mysql-5.1.54]# /etc/init.d/mysql start
Starting MySQL. [确定]
Oracle数据库DBA日常Sql列表
Oracle中SYS_CONNECT_BY_PATH函数的妙用
相关资讯 CentOS
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。
Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

人们可以使用scp命令在网络主机之间安全地复制文件。它使用ssh进行数据传输和身份验证。典型的语法是:scpfile1user@host:/path/to/dest/scp-r/path/to/source/user@host:/path/to/dest/scp排除文件我不认为你可以在使用scp命令时过滤或排除文件。但是,有一个很好的解决方法来排除文件并使用ssh安全地复制它。本页面说明如何在使用scp递归复制目录时过滤或排除文件。如何使用rsync命令排除文件语法是:rsyncav-essh-

Hibernate多态映射可映射继承类到数据库,提供以下映射类型:joined-subclass:为子类创建单独表,包含父类所有列。table-per-class:为子类创建单独表,仅包含子类特有列。union-subclass:类似joined-subclass,但父类表联合所有子类列。

苹果公司最新发布的iOS18、iPadOS18以及macOSSequoia系统为Photos应用增添了一项重要功能,旨在帮助用户轻松恢复因各种原因丢失或损坏的照片和视频。这项新功能在Photos应用的"工具"部分引入了一个名为"已恢复"的相册,当用户设备中存在未纳入其照片库的图片或视频时,该相册将自动显示。"已恢复"相册的出现为因数据库损坏、相机应用未正确保存至照片库或第三方应用管理照片库时照片和视频丢失提供了解决方案。用户只需简单几步

1、首先需要安装Git,可以使用yum源在线安装:[root@localhostDesktop]#yuminstall-ygit2、创建一个git用户,用来运行git服务addusergit3、初始化git仓库:这里我们选择/data/git/learngit.git来作为我们的git仓库[root@localhostgit]#gitinit--barelearngit.gitInitializedemptyGitrepositoryin/data/git/learngit.git/执行以上命令

如何在PHP中使用MySQLi建立数据库连接:包含MySQLi扩展(require_once)创建连接函数(functionconnect_to_db)调用连接函数($conn=connect_to_db())执行查询($result=$conn->query())关闭连接($conn->close())

PHP中处理数据库连接报错,可以使用以下步骤:使用mysqli_connect_errno()获取错误代码。使用mysqli_connect_error()获取错误消息。通过捕获并记录这些错误信息,可以轻松识别并解决数据库连接问题,确保应用程序的顺畅运行。

服务器系统版本通常包括 Linux (RHEL、CentOS、Ubuntu Server、Debian)、Windows Server (Standard、Datacenter、Hyper-V)、UNIX (Solaris、AIX、HP-UX) 和 macOS Server。选择系统版本时应考虑应用程序兼容性、硬件支持、安全性和稳定性、成本和支持等因素。

Linux管理员的一个重要任务是保护服务器免受非法攻击或访问。默认情况下,Linux系统带有配置良好的防火墙,比如iptables、UncomplicatedFirewall(UFW),ConfigServerSecurityFirewall(CSF)等,可以防止多种攻击。任何连接到互联网的机器都是恶意攻击的潜在目标。有一个名为Fail2Ban的工具可用来缓解服务器上的非法访问。什么是Fail2Ban?Fail2Ban[1]是一款入侵防御软件,可以保护服务器免受暴力攻击。它是用Python编程语
