大佬教程收集整理的这篇文章主要介绍了CentOS6.5安装与配置Mysql数据库,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_696_17@ 说到数据库,我们大多想到的是关系型数据库,比如MysqL、Oracle、sqlserver等等,这些数据库软件在windows上安装都非常的方便,在Linux上如果要安装数据库,咱不得不首先推荐的是MysqL数据库了,而且MysqL数据库的第一个版本就是发行在Linux系统上的。
@H_696_17@ MysqL是一个关系型数据库管理系统,由瑞典MysqL AB公司开发,目前属于Oracle公司。MysqL是一种关联数据库管理系统,关联数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性。MysqL的sql语言是用于访问数据库的最常用标准化语言。MysqL软件采用了双授权政策(本词条“授权政策”),它分为社区版和商业版,由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,一般中小型网站的开发都选择MysqL作为网站数据库。由于其社区版的性能卓越,搭配PHP和Apache可组成良好的开发环境。 @H_696_17@ 在Linux上安装MysqL数据库,我们可以去其官网上下载MysqL数据库的rpm包,http://dev.MysqL.com/downloads/MysqL/5.6.html#downloads,大家可以根据自己的操作系统去下载对应的数据库文件,目前最新的版本是5.6.10了。 @H_696_17@ 在这里我是通过yum来进行MysqL数据库的安装的,通过这种方式进行安装,可以将跟MysqL相关的一些服务、jar包都给我们安装好,所以省去了很多不必要的麻烦!!! @H_696_17@ 二、卸载掉原有MysqL @H_696_17@ 因为MysqL数据库在Linux上实在是太流行了,所以目前下载的主流Linux系统版本基本上都集成了MysqL数据库在里面,我们可以通过如下命令来查看我们的操作系统上是否已经安装了MysqL数据库 @H_696_17@ 有的话,我们就通过 rpm -e 命令 或者 rpm -e --nodeps 命令来卸载掉[root@xiaoluo ~]# rpm -qi MysqL-server
[root@xiaoluo ~]# service MysqLd start 初始化 MysqL 数据库: WARNING: The host 'xiaoluo' Could not be looked up with resolveip. This probably means that your libc libraries are not 100 % compatible with this binary MysqL version. The MysqL daemon,MysqLd,should work normally with the exception that host name resolving will not work. This means that you should use IP addresses instead of hostnames when specifying MysqL privileges ! Installing MysqL system tables... OK Filling Help tables... OK To start MysqLd at boot time you have to copy support-files/MysqL.server to the right place for your system PLEASE REMEMBER TO SET A passworD FOR THE MysqL root USER ! To do so,start the server,then issue the following commands: /usr/bin/MysqLadmin -u root password new-password' /usr/bin/MysqLadmin -u root -h xiaoluo password ' Alternatively you can run: /usr/bin/MysqL_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for @H_806_33@more instructions. You can start the MysqL daemon with: cd /usr ; /usr/bin/MysqLd_safe & You can test the MysqL daemon with MysqL-test-run.pl cd /usr/MysqL-test ; perl MysqL-test-run.pl Please report any problems with the /usr/bin/MysqLbug script! [确定] 正在启动 MysqLd: [确定]
service MysqLd restart 停止 MysqLd: [确定] 正在启动 MysqLd: [确定]
以上是大佬教程为你收集整理的CentOS6.5安装与配置Mysql数据库全部内容,希望文章能够帮你解决CentOS6.5安装与配置Mysql数据库所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。