1.setup
mysql's client:
1.yum install mysql
mysql's server:
1.yum install mysql-server
2.yum install mysql-devel
2.configure
1.edit character set--->/etc/my.cnf default-character-set=utf8
2.start service--->service mysqld start / /etc/init.d/mysqld start
3.set boot start--->chkconfig mysqld on
4.boot start confirm--->chkconfig --list | grep mysql = mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
5.create root--->/usr/bin/mysqladmin -u root password 'fnst1234'
6.GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'fnst1234' WITH GRANT OPTION;
3.delete
yum -y remove mysql*
others
database dir---> /var/lib/mysql/
configure dir---> /usr/share /mysql
command dir---> /usr/bin
boot dir--->/etc/rc.d/init.d/
阅读(1526) | 评论(0) | 转发(0) |