安装MYSQL问题汇总

./scripts/mysql_install_db --user=mysql --datadir=/data/mysql

初始化后报错:

Installing MySQL system tables...

./bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Installation of system tables failed!  Examine the logs in

/data/mysql for more information.

You can try to start the mysqld daemon with:

shell> ./bin/mysqld --skip-grant &

and use the command line tool ./bin/mysql

to connect to the mysql database and look at the grant tables:

shell> ./bin/mysql -u root mysql

mysql> show tables

Try ‘mysqld --help‘ if you have problems with paths.  Using --log

gives you a log in /data/mysql that may be helpful.

The latest information about MySQL is available on the web at

http://www.mysql.com/.  Please consult the MySQL manual section

‘Problems running mysql_install_db‘, and the manual section that

describes problems on your OS.  Another information source are the

MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if

you do mail us, you MUST use the ./bin/mysqlbug script!

# yum
whatprovides libstdc++.so.5

# yum
install compat-libstdc++-33

安装以上两个重新运行:./scripts/mysql_install_db --user=mysql --datadir=/data/mysql后成功

时间: 2024-08-02 22:10:23

安装MYSQL问题汇总的相关文章

CentOS安装MySQL问题汇总

遇到的错误 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) denied for user 'root'@'localhost' (using password: NO) 描述:刚安装完MySQL,第一次登陆. [[email protected] ~]$ mysql -u root -p Enter password: #我记得root初始是没密码的,这句直接回车 ERROR

mysql 安装出现问题汇总

MYSQL安装出现could not start the service mysql error:0处理 当各位在安装.重装时出现could not start the service mysqlerror:0的错误时,可以尝试下面两种方法. 一.方式1 MySQL安装是出现could not start the service mysql error:0 提示错误,解决方法: 首 先,在管理工具->服务里面将MySQL的服务给停止,然后打开cmd 进入你的MySQL bin目录下,例如 C:\

源码安装mysql,及主从同步

源码安装mysql [可选] 如果用源码安装cmake软件: cd /home/oldboy/tools/ tar xf cmake-2.8.8.tar.gz cd cmake-2.8.8 ./configure #CMake has bootstrapped. Now run gmake. gmake gmake install cd ../ 依赖包安装(这里直接可以用yum安装cmake) # yum install cmake gcc gcc-c++ gcc-g77 autoconf au

MySQL复习汇总

以下引自燕十八老师的复习秘籍. 顺附燕十八老师的个人博客:伟大的农场主,兼职PHP讲师. mysql复习 一:复习前的准备 1:确认你已安装wamp 2:确认你已安装ecshop,并且ecshop的数据库名为shop 二 基础知识: 1.数据库的连接 mysql -u -p -h -u 用户名 -p 密码 -h host主机 2:库级知识 2.1 显示数据库: show databases; 2.2 选择数据库: use dbname; 2.3 创建数据库: create database db

Centos 5.5 编译安装mysql 5.5.9

下载mysql wget  http://mysql.mirrors.pair.com/Downloads/MySQL-5.5/mysql-5.5.9.tar.gz 创建mysql用户 [[email protected] opt]# useradd -g mysql mysql3307 -s /bin/nologin -d /usr/local/mysql3307 创建数据目录 [[email protected] opt]# mkdir /mysqldata/dirdata/mysql330

CentOS6.8下使用yum安装mysql,并远程登陆mysql

第1步.查看CentOS下是否已安装mysql 输入命令 :yum list installed | grep MySQL 第2步.删除已安装mysql 输入命令:yum -y remove mysql 看到complete就说明成功了 第3步.查看yum库中的mysql(非必须) 输入命令:yum list | grep mysql 第4步.从yum库中的安装mysql 输入命令: yum -y install mysql mysql-server mysql-devel 第5步.验证是否安装

Docker安装MySQL Tomcat Python Redis MongoDB Apache

Docker 安装 MySQL 方法一.docker pull mysql 查找Docker Hub上的mysql镜像 [email protected]:/mysql$ docker search mysql NAME                     DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED mysql                    MySQL is a wide

centos7.4 安装mysql详细流程

参考链接: https://blog.csdn.net/zxy987872674/article/details/81949430 1.下载mysql安装包 下载地址:https://dev.mysql.com/downloads/mysql/ 2.解压缩安装包 tar xvf MySQL-5.6.44-1.el7.x86_64.rpm-bundle.tar 3.安装前,注意: https://blog.csdn.net/tianshuhao521/article/details/9385432

centos7下使用yum安装mysql

CentOS7的yum源中默认好像是没有mysql的.为了解决这个问题,我们要先下载mysql的repo源. 1. 下载mysql的repo源 $ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 2. 安装mysql-community-release-el7-5.noarch.rpm包 $ sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm 安装这个