CentOS 6.2上使用YUM安装MySQL

php中文网
发布: 2016-06-07 17:27:11
原创
1062人浏览过

因为XAMPP不支持64位,所以我还是自己在CentOS 6.2上安装MySQL。使用默认的yum。

因为xampp不支持64位,所以我还是自己在centos 6.2上安装mysql。使用默认的yum。

yes | yum install mysql

yes | yum install mysql-server

然后运行

service mysqld start 

会有如下非常重要的输出:

Initializing MySQL database:  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 xxxxxx password 'new-password'

WampServer
WampServer

WampServer是一个在Windows上的Web开发平台,它允许您使用Apache2、PHP、MySQL和MariaDB创建动态Web应用程序。WampServer会自动安装您需要的一切,以直观地开发Web应用程序。您甚至可以在不触碰设置文件的情况下调整服务器。最重要的是,WampServer提供免费版本(在GPML许可下),包括32位和64位版本。WampServer不兼容Windows XP、SP3或Windows Server 2003。

WampServer 56
查看详情 WampServer

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 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!

                                                          [  OK  ]
Starting mysqld:                                          [  OK  ]

可以看到这个命令会初始化MYSQL,,并且安装MYSQL的系统数据表。如果没有这个过程,那么强行通过 mysqld_safe start 命令去启动的话是会失败的。

linux

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号