Home > Database > Mysql Tutorial > Linux下配置和安装MySQL

Linux下配置和安装MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:56:58
Original
1079 people have browsed it

3、mysqlgt;FLUSH PRIVILEGES//修改生效4、mysqlgt;EXIT//退出MySQL服务器这样就可以在其它任何的主机上以root身份登录啦! 增

1、安装MySQL需要下面两个文件:

MySQL-server-5.0.26-0.i386.rpm   

MySQL-client-5.0.26-0.i386.rpm

下载地址为:http: //dev.mysql.com/downloads/mysql/5.0.html,打开此网页,下拉网页找到“Red Hat Enterprise Linux 3 RPM (x86) downloads”项,找到“Server”和“Client programs”项,下载需要的上述两个rpm文件。


2、安装MySQL

rpm文件是Red Hat公司开发的软件安装包,rpm可让Linux在安装软件包时免除许多复杂的手续。该命令在安装时常用的参数是 –ivh ,其中i表示将安装指定的rmp软件包,V表示安装时的详细信息,,h表示在安装期间出现“#”符号来显示目前的安装过程。这个符号将持续到安装完成后才停 止。

1)安装服务器端

为防止与旧版mysql冲突,需先卸载旧版mysql:
1、首先查找以前是否安装MySQL:
命令:rpm -qa | grep mysql
可以看到已安装的mysql包名:mysql-3.23.54a-11
2、删除命令:
rpm -e --nodeps 包名(最好把mysql开头的都删除了)
3、然后删除mysql老版本的开发头文件和库(如果有的话)
rm -fr /usr/lib/mysql
rm -fr /usr/include/mysql

如果是卸载MySQL5.0的话,那就查找rpm –qa|grep MySQL

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template