ubuntu mysql 源码安装_ubuntu 12.04 源码安装 MySQL-5.5.40

在安装MySQL过程中遇到了几个问题,包括libaio.so.1库缺失导致的错误以及mysql_install_db命令执行失败。通过安装libaio1解决了libaio.so.1的依赖问题,移除旧的my.cnf文件解决了mysql_install_db的执行错误。记得在安装完成后设置root用户的密码。
摘要由CSDN通过智能技术生成

事先安装:

sudo apt-get -y installcmake libncurses5-dev bison g++ make

http://crazyming.blog.51cto.com/1048571/1217201

Here are some problems I had during the installation.

1. mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

I Fixed after installing libaio1: sudo apt-get install libaio1

2. When I was trying to run /usr/local/mysql/scripts/mysql_install_db –user=mysql to reate the data dictionary

This command gives the following error:

FATAL ERROR: Could not find mysqld

The following directories were searched:

/usr/libexec

/usr/sbin

/usr/bin

Fix: Find and remove the old my.cnf file.

sudo rm /etc/mysql/my.cnf, because it was getting the details from the /etc/my.cnf

Don’t forget to set your root password.

./bin/mysqladmin -u root password ‘new-password’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值