mysql 安装
来源:互联网 发布:linux 系统架构 编辑:程序博客网 时间:2024/05/22 08:25
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13-linux-glibc2.5-i686.tar.gz
tar -zxvf mysql-5.7.13-linux-glibc2.5-i686.tar.gz
cp mysql-5.7.13-linux-glibc2.5-i686 /usr/local/mysql -r
cd /usr/local/mysql/
mkdir data
groupadd mysql
useradd -r -g mysql mysql
chown -R mysql:mysql ./
vi /etc/my.cnf
basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data
4.修改vi /etc/my.cnf 文件 [mysqld] basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data 5.初始化数据 进入mysql安装目录 cd /usr/local/mysql 执行: bin/mysqld –user=mysql –basedir=/usr/local/mysql/ –datadir=/usr/local/mysql/data/ – secure-file-priv=/root/ –initialize
6.启动mysql
添加开机启动:执行命令cp support-files/mysql.server /etc/init.d/mysql 把启动脚本放到开机初始化目录
启动mysql服务:执行命令service mysql start
执行命令:ps -ef”grep mysql 看到mysql服务说明启动成功
解决动态密码的问题
http://blog.itpub.net/10569970/viewspace-1726363/
使用的时候出现一个错误
bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
是因为64位系统中安装了32位程序
解决方法:
yum install glibc.i686
重新安装以后还有如下类系错误 再继续安装包
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6
bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
yum install libaio
yum install libaio.i686 (系统内核版本问题)
跟下面问题一样
[图片]
yum install libaio.i686 (系统内核版本问题)安装和本机内核一样的版本即可
系统内核查看
cat /proc/version
uname -a
今天登陆oracle10g的sqlplus发现如下错误:
[oracle@plinuxt19 10g]
logout
[root@plinuxt19 ~]# rpm -qa | grep libaio
libaio-devel-0.3.105-2
libaio-0.3.105-2
奇怪明明已经安装了。
后来想到current os version是x86_64位的,我所看到的libaio的包很可能是(i386)的?
[root@plinuxt19 ~]# rpm -q –qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n’ libaio
libaio-0.3.105-2 (i386)
果然是这样,但这是为什么呢?难道RHEL 4在安装的时候对于libaio的包只安装32bit的?
随即将libaio对应的x86_64的包装上:
[root@plinuxt19 ~]# rpm -ivh libaio-0.3.105-2.x86_64.rpm
warning: libaio-0.3.105-2.x86_64.rpm: V3 DSA signature: NOKEY, key ID 652e84dc
Preparing… ########################################### [100%]
1:libaio ########################################### [100%]
[oracle@plinuxt19 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Oct 29 12:54:20 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn / as sysdba;
Connected to an idle instance.
由此问题解决,但是疑惑的是,为什么当时没有装64bit的包,也许是相应option没有勾选。基本上就是这样,记录下
http://www.2cto.com/database/201604/498462.html
http://dev.mysql.com/doc/refman/5.7/en/binary-installation.html
- MySQL安装
- MySQL安装
- mysql安装
- mysql 安装
- 安装mysql
- Mysql安装
- mysql安装
- mysql安装
- mySQL安装
- mysql 安装
- Mysql安装
- 安装MySQL
- Mysql安装
- Mysql安装
- 安装MySQL
- MySQL 安装
- 安装MySQL
- Mysql安装
- linux 文件及命令(二)
- jQuery实现AJAX定时刷新局部页面实例
- Android中Parcelable接口用法
- 集成UITableViewCell左滑多个按钮(含demo地址)
- 一个很实用的Ehlib排序函数,适合ADO
- mysql 安装
- Centos6.5 启动后桌面空白,login输入用户名密码提示module is unknow
- RBF神经网络的学习算法
- RTP 和 RTSP的区别
- iOS- 资源大全中文版
- 1031. Hello World for U (20)
- android 飘心动画(直播点赞)效果(三)---相关知识点整理
- java强、软、弱、虚四种引用
- 阿里面试的知识点