时间:2021-07-01 10:21:17 帮助过:19人阅读
开机启动
/bin/cp support-files/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld
chkconfig mysqld on
chkconfig --list
mkdir -p /var/lib/mysql
chown -R mysql.mysql /var/lib/mysql/
chmod -R 1777 /var/lib/mysql/
拷贝对应的mysql配置文件
cp /soft/src/mysql-5.5.55/support-files/my-huge.cnf /etc/my.cnf
启动:/etc/init.d/mysqld start
登录:
mysql
select user,host from mysql.user;
删除多余用户
delete from mysql.user where user=‘‘;
delete from mysql.user where host=‘localhost.localdomain‘;
delete from mysql.user where host=‘::1‘;
设置密码:
/install/mysql/bin/mysqladmin -u root password ‘new-password‘
centos MySQL 5.5 源代码 cmake 安装
标签:hive x86_64 mod tar.gz product copy pre tin src