liunx 下mysql安装备忘
很久不安装都忘记了
rpm -qa|grep -i mysql # 查看安装的mysql版本
MySQL-client-5.5.17-1.linux2.6.x86_64
MySQL-server-5.5.17-1.linux2.6.x86_64
卸载使用
rpm -ev package_name #package_name包名 比如:mysql-server-5.0.51b-1.el5
安装文件
my.cnf
MySQL-client-5.5.17-1.linux2.6.x86_64.rpm
MySQL-server-5.5.17-1.linux2.6.x86_64.rpm
my.cnf 拷贝到 /etc下面
rpm MySQL-server-5.5.17-1.linux2.6.x86_64.rpm
rpm MySQL-client-5.5.17-1.linux2.6.x86_64.rpm
目录安装到/var/lib/mysql
service mysql start
如果启动报错
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/js
删除掉 原来生成的文件
ibdata 和 ib_logfil 的几个文件
service mysql stop
service mysql start
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11