CentOS 63源码安装mysql 56方法.doc
上传人:sy****28 上传时间:2024-09-13 格式:DOC 页数:4 大小:70KB 金币:14 举报 版权申诉
预览加载中,请您耐心等待几秒...

CentOS 63源码安装mysql 56方法.doc

CentOS63源码安装mysql56方法.doc

预览

在线预览结束,喜欢就下载吧,查找使用更方便

14 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

本文主要介绍在CentOS6.3系统上通过源码方式安装最新的mysql5.6.10版本的方法,转自HYPERLINK"http://lovesoo.org"http://lovesoo.org.1:下载mysql下载地址为:http://www.mysql.com/downloads/mysql/5.6.html#downloads选择“SourceCode”->”GenericLinux(ArchitectureIndependent),CompressedTARArchive”2:安装必要的软件包yum-yinstallgccgcc-c++gcc-g77autoconfautomakezlib*fiex*libxml*ncurses-devellibmcrypt*libtool-ltdl-devel*makecmake3:编译安装[root@server100~]#groupaddmysql[root@server100~]#useradd-r-gmysqlmysql[root@server100~]#tar-zxvfmysql-5.6.10.tar.gz[root@server100~]#cdmysql-5.6.10[root@server100mysql-5.6.10]#cmake.[root@server100mysql-5.6.10]#make&&makeinstall-------------默认安装目录为/usr/local/mysql[root@server100~]#chown-Rmysql.mysql/usr/local/mysql[root@server100~]#cd/usr/local/mysql/scripts[root@server100~]#./mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data[root@server100~]#cd/usr/local/mysql/support-files[root@server100support-files]#cpmysql.server/etc/rc.d/init.d/mysql[root@server100support-files]#cpmy-default.cnf/etc/my.cnf[root@server100~]#chkconfig-addmysql[root@server100~]#chkconfigmysqlon[root@server100~]#servicemysqlstartStartingMySQLSUCCESS![root@server100support-files]#mysqlWelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis1Serverversion:5.6.10SourcedistributionCopyright(c)2000,2013,Oracleand/oritsaffiliates.Allrightsreserved.OracleisaregisteredtrademarkofOracleCorporationand/oritsaffiliates.Othernamesmaybetrademarksoftheirrespectiveowners.Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.mysql>mysql>status;--------------mysqlVer14.14Distrib5.6.10,forLinux(i686)usingEditLinewrapperConnectionid:1Currentdatabase:Currentuser:root@localhostSSL:NotinuseCurrentpager:stdoutUsingoutfile:''Usingdelimiter:;Serverversion:5.6.10SourcedistributionProtocolversion:10Connection:LocalhostviaUNIXsocketServercharacterset:utf8Dbcharacterset:utf8Clientcharacter