欢迎来到天天文库
浏览记录
ID:11454502
大小:70.47 KB
页数:4页
时间:2018-07-12
《centos 6.3源码安装mysql 5.6方法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、本文主要介绍在CentOS6.3系统上通过源码方式安装最新的mysql5.6.10版本的方法,转自http://lovesoo.org.1:下载mysql下载地址为:http://www.mysql.com/downloads/mysql/5.6.html#downloads选择“SourceCode”->”GenericLinux(ArchitectureIndependent),CompressedTARArchive”2:安装必要的软件包yum-yinstallgccgcc-c++gcc-g77autoconfau
2、tomakezlib*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.[
3、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=/u
4、sr/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[
5、root@server100~]#servicemysqlstartStartingMySQLSUCCESS![root@server100support-files]#mysqlWelcometotheMySQLmonitor.Commandsendwith;org.YourMySQLconnectionidis1Serverversion:5.6.10SourcedistributionCopyright(c)2000,2013,Oracleand/oritsaffiliates.Allrightsreserved
6、.OracleisaregisteredtrademarkofOracleCorporationand/oritsaffiliates.Othernamesmaybetrademarksoftheirrespectiveowners.Type'help;'or'h'forhelp.Type'c'toclearthecurrentinputstatement.mysql>mysql>status;--------------mysqlVer14.14Distrib5.6.10,forLinux(i686)usingEd
7、itLinewrapperConnectionid:1Currentdatabase:Currentuser:root@localhostSSL:NotinuseCurrentpager:stdoutUsingoutfile:''Usingdelimiter:;Serverversion:5.6.10SourcedistributionProtocolversion:10Connection:LocalhostviaUNIXsocketServercharacterset:utf8Dbcharacterset:utf8C
8、lientcharacterset:utf8Conn.characterset:utf8UNIXsocket:/tmp/mysql.sockUptime:5min45secThreads:1Questions:5Slowqueries:0Opens:70Flushtables:1Opentables:63Querie
此文档下载收益归作者所有