安装前准备
如果MySQL用户不存在,那么添加mysql用户
groupadd mysql
useradd
-g mysql mysql
wget http:
//downloads
.mysql.com
/archives/mysql-5
.1
/mysql-5
.1.70.
tar
.gz
tar
-zxvf mysql-5.1.70.
tar
.gz
cd
mysql-5.1.70
yum
install
ncurses ncurses-devel
cp support-files
/my-medium
.cnf
/etc/my
.cnf
/etc/init
.d
/mysqld
start
这一步可能会报错
/etc/init.d/mysqld: line 260: my_print_defaults: command not found
/etc/init.d/mysqld: line 263: my_print_defaults: command not found
/etc/init.d/mysqld: line 270: @HOSTNAME@: command not found
/etc/init.d/mysqld: line 279: @HOSTNAME@: command not found
/etc/init.d/mysqld: line 292: cd: @prefix@: No such file or directory
Starting MySQLCouldn't find MySQL manager (@bindir@/mysqlmanager) or server (@bindir@/mysqld_safe) [FAILED]
因为路径没有设置,请重启确认上面配置工作是否都完成,一般是configure后没有make和make install。
mysql初始化配置:
export
PATH=
/usr/local/mysql/bin
:$PATH
/usr/local/mysql/bin/mysql_secure_installation
直接拷贝数据库文件夹到数据目录下然后执行
/usr/local/mysql/bin/mysqladmin
-u root -p flush-tables
mysql安装过程中问题
1.
make[2]: Entering directory `/down/webinstall/mysql-5.1.57/mysql-test
make[3]: Entering directory `/down/webinstall/mysql-5.1.57/mysql-test
make[3]: Nothing to be done for `install-exec-am.
make INSTALL_TO_DIR="/usr/local/mysql/mysql-test" install_test_files
make[4]: Entering directory `/down/webinstall/mysql-5.1.57/mysql-test
时间较长
MYSQL安装到这里卡了很久,可能以为出错了,实际上MYSQL已经安装成功了,它这步过段时间就会好了,是mysql在自我编译测试造成的。
2.checking for termcap functions library... configure: error: No curses/termcap library found
yum install ncurses ncurses-devel
3.Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
启动数据库之前,需要先配置权限表,其中/usr/local/mysql为mysql的安装目录
chown -R mysql:mysql /usr/local/mysql
/usr/local/mysql/bin/mysql_install_db --user=mysql
修改mysql 默认密码:
相关推荐
(Linux系统下)QT中mysql驱动添加所需要使用的mysql源码。 解压缩:tar -zxvf mysql-5.1.70.tar.gz 配置#./configure -prefix=/usr/local/mysql-pc 然后执行make即可顺利编译通过
mysql-8.2.0-linux-glibc2.28-aarch64.tar 适用于Generic Linux (Architecture Independent)
mysql-8.2.0-linux-glibc2.17-x86_64.tar 适用于Generic Linux (Architecture Independent)
mysql-8.2.0-linux-glibc2.28-aarch64.tar.xz 适用于Generic Linux (Architecture Independent)
MySQL8.4.0 LTS(mysql-8.4.0-linux-glibc2.28-x86_64.tar)适用于Linux Generic x86_64 glibc2.28
mysql8.0.35压缩包 可以通过xftp上传linux tar xf mysql-8.0.35-linux-glibc2.28-x86_64.tar.xz 命令解压
mysql-8.0.30-linux-glibc2.12-x86-64.tar.xz解压版
mysql-8.2.0-linux-glibc2.17-aarch64.tar.xz 适用于Generic Linux (Architecture Independent)
最新版linux mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz最新版linux mysql-8.0.22-linux-glibc2.12-x86_64.tar.xz
mysql-8.1.0-linux-glibc2.28-x86_64.tar.xz 适用于Generic Linux (Architecture Independent)
mysql-5.6.14-linux-glibc2.5-x86_64.tar.gz 文件格式 有关Linux系统的mysql-5.6.14-linux-glibc2.5-x86_64.tar.gz版本下载,亲测可用 mysql-5.6.14-linux-glibc2.5-x86_64.tar.gz mysql-5.6.14-linux-glibc2.5-x86_...
mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz.zip.001 卷1 mysql-5.7.25-linux-glibc2.12-x86_64.tar.gz.zip.002 卷2 需要把 卷1与卷2都下载到同一目录后,才可以解压 卷1下载地址: ... 解压后文件为: mysql-5.7.25-...
在本篇文章中,我们将深入探讨针对arm架构的MySQL 5.7.32安装文件"mysql-5.7.32-linux-glibc-2.28-aarch64.tar.gz"。 首先,让我们了解"mysql-5.7.32-linux-glibc-2.28-aarch64"这个文件名的含义。"mysql-5.7.32...
mysql-8.2.0-linux-glibc2.17-x86_64-minimal.tar.xz 适用于Generic Linux (Architecture Independent)
mysql-8.0.20-linux安装包分流,有需要可以下载
本篇文章将详细讲解“mysql-connector-java”在Linux下作为MySQL的JDBC驱动Jar包的相关知识点。 1. JDBC简介: JDBC是Java平台上的一个标准接口,它允许Java应用程序通过API与各种类型的数据库进行通信。JDBC提供...
mysql-8.1.0-linux-glibc2.17-x86_64.tar.xz 适用于Generic Linux (Architecture Independent)
mysql-5.6.40-linux-glibc2.12-x86_64.tar.gz mysql5.6b版本,适合linux centos6 个centos7离线安装,tar.gz包
MySQL Cluster 8.0.27( Linux - ...mysql-cluster-8.0.27-linux-glibc2.12-x86_64.part2.rar https://download.csdn.net/download/weixin_43800734/43757676 mysql-cluster-8.0.27-linux-glibc2.12-x86_64.part1.rar ...
mysql-8.2.0-linux-glibc2.28-x86_64.tar.xz 适用于Generic Linux (Architecture Independent)