my_print_defaults: command not found
来源:互联网 发布:mac 终端更改时间date 编辑:程序博客网 时间:2024/05/16 06:04
重启mysql服务报如下错误mysql版本5.5.8:
# /etc/init.d/mysqld restart
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
MySQL server PID file could not be found! [FAILED]
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
Starting MySQLCouldn't find MySQL server (./bin/mysqld_safe[FAILED]
解决办法:
编辑/etc/my.cnf 文件,因为缺少basedir 和 datadir 两个路径,在 [mysqld] 添加上即可
#vim /etc/my.cnf
[mysqld]
...........
...........
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
# /etc/init.d/mysqld restart
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
MySQL server PID file could not be found! [FAILED]
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
Starting MySQLCouldn't find MySQL server (./bin/mysqld_safe[FAILED]
解决办法:
编辑/etc/my.cnf 文件,因为缺少basedir 和 datadir 两个路径,在 [mysqld] 添加上即可
#vim /etc/my.cnf
[mysqld]
...........
...........
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
保存退出,然后重新启动就可以
转自:http://blog.chinaunix.net/uid-27687885-id-3886562.html
0 0
- my_print_defaults: command not found
- mysqld_mulit my_print_defaults command not found
- [Mysql启动报错]/etc/init.d/mysqld: line 256: my_print_defaults: command not found
- command :hadoop:command not found
- bash:command not found
- rz: command not found
- command not found 解决方法
- crontab:command not found
- LINUX command not found
- qmake: command not found
- mkimage command not found
- ls command not found
- rails command not found
- command not found 解决方法
- bash:command not found
- ifconfig command not found
- rz: command not found
- uuencode command not found
- lua 5.2 GC 源码分析 一
- 图的表示--邻接表
- windows系统下javac使用utf8编码
- Delphi中如何让编辑框只能输入数字或者只能输入一个浮点数值呢?
- 处理芯片cel格式数据的全自动R代码
- my_print_defaults: command not found
- Qt实现屏保功能,鼠标一定时间无响应程序进入待机状态
- Python自动化测试 (二) ConfigParser模块读写配置文件
- 黑马程序员------------------继承
- 图的表示--邻接矩阵
- T检验、F检验
- BRISK:Binary Invariant Scalable Keypoint——配置与运行
- 开源SSL加快器的构建
- 【Codility】Dominator ★★