20156 月8
Centos:安装mysql
# yum update
# yum search mysql
# yum list mysql
# yum list mysql-server
# yum install mysql
# yum install mysql-server
运行命令chkconfig –levels 235 mysqld on使MySQL服务可以自动启动,并使用命令/etc/init.d/mysqld start立刻启动MySQL服务
设置MySQL的root密码,运行命令/usr/bin/mysqladmin -u root password ‘new-password’,其中’new-password’是新设的密码,如123456