mysql二进制安装的优缺点_mysql二进制安装的问题

二进制安装后,启动时出现问题(mysql安装在/application/msyql下):

[root@135 bin]# /etc/init.d/mysqld start

Starting MySQL.170320 22:21:51 mysqld_safe The file /usr/local/mysql/bin/mysqld

does not exist or is not executable. Please cd to the mysql installation

directory and restart this script from there as follows:

./bin/mysqld_safe&

See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information

ERROR! The server quit without updating PID file (/application/mysql/data/135.pid).

解决办法和思路:

首先是按照错误的提示操作,严格的执行./bin/mysqld_safe&,之后可以启动,启动的进行如下:

mysql      4389   4243  2 22:23 pts/0    00:00:00 ./bin/mysqld --basedir=/application/mysql --datadir=/application/mysql/data --plugin-dir=/application/mysql/lib/plugin --user=mysql --log-error=/application/mysql/data/135.err --pid-file=/application/mysql/data/135.pid

可以看出用/etc/init.d/mysqld启动,之所以出现如上的错误,还是配置文件的问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值