#install mysql
$ rpm -ivh MySQL-client-5.5.28-1.rhel5.x86_64.rpm --nodeps
$ rpm -ivh MySQL-server-5.5.28-1.rhel5.x86_64.rpm --nodeps
# config MySql
$ mv /usr/share/mysql/my-medium.cnf /etc/my.cnf
#修改my.cnf,配置字符集,最大连接数,表名是否大小写敏感
#[client]
innodb_flush_log_at_trx_commit=0
default-character-set=utf8
#[mysqld]
lower_case_table_names=1
max_connections=1000
character_set_server=utf8
#保存退出,启动mysql
$ service mysql restart
#登陆mysql
$ mysql -u root -p
mysql> use test_db
#授权任何机器都可以远程登陆
mysql>grant all privileges on *.* to root@"%" identified by "admin" with grant option;
mysql>flush privileges;
Redhat:安装MySQL5.5
最新推荐文章于 2022-04-26 17:49:26 发布