@tsing1226
2016-01-17T08:59:04.000000Z
字数 435
阅读 685
mysql
$ cd /etc/yum.repos.d
$ sudo mv CentOS-Base.repo CentOS-Base.repo.bak
$ sudo touch CentOS6-Base-163.repo
$ sudo vi CentOS6-Base-163.repo
$ sudo yum clean all
$ yum makecache
$ sudo yum list|grep mysql
$ sudo yum install mysql-server -y
$ sudo service mysqld status
$ sudo service mysqld start
/usr/bin/mysqladmin -u root password '123456'
$ mysql -uroot -p123456
> show databases ;
> use test ;
> show tables ;