Welcome 微信登录

首页 / 数据库 / MySQL / CentOS 6.2上使用YUM安装MySQL

因为XAMPP不支持64位,所以我还是自己在CentOS 6.2上安装MySQL。使用默认的yum。yes | yum install mysqlyes | yum install mysql-server然后运行service mysqld start 会有如下非常重要的输出:Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE 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"Alternatively you can run:
/usr/bin/mysql_secure_installationwhich 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.plPlease report any problems with the /usr/bin/mysqlbug script!                                                         [  OK  ]
Starting mysqld:                                         [  OK  ]可以看到这个命令会初始化MYSQL,并且安装MYSQL的系统数据表。如果没有这个过程,那么强行通过 mysqld_safe start 命令去启动的话是会失败的。更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14Oracle Undo 原理Oracle删除不了实例的解决办法相关资讯      CentOS 6.2  CentOS下安装MySQL 
  • CentOS下MySQL安装配置  (07/21/2015 10:59:38)
  • CentOS下MySQL数据库的安装  (12/30/2014 14:23:49)
  • 解决CentOS 6.2 yum update报错:  (04/10/2013 09:18:53)
  • CentOS 6.5下安装MySQL 5.6.21  (01/07/2015 13:04:13)
  • CentOS 6.2出现Disk sda contains   (02/19/2014 18:56:52)
  • CentOS 6.2下使用Nokia E72i成功发  (02/28/2013 16:40:32)
本文评论 查看全部评论 (0)
表情: 姓名: 字数