mysql源码安装报错
2013-07-03 09:37
106 查看
usr/local/mysql/scripts/mysql_install_db --user=mysql
但是很有可能报错,找不到bin目录中的my_print_defaults错误信息: FATALERROR:Couldnotfind./bin/my_print_defaultsIf you are using a binary release, you must run this script fromwithin the directory the archive extracted into. If you compiledMySQL yourself you must run 'make install' first. 或[root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql&[1] 16874[root@bogon scripts]#FATAL ERROR: Could not find ./bin/my_print_defaultsIf you compiled from source, you need to run 'make install' tocopy the software into the correct location ready for operation.If you are using a binary release, you must either be at the toplevel of the extracted archive, or pass the --basedir optionpointing to that location. 解决方法: [root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &(这点非常重要)
usr/local/mysql/scripts/mysql_install_db --user=mysql
但是很有可能报错,找不到bin目录中的my_print_defaults错误信息: FATALERROR:Couldnotfind./bin/my_print_defaultsIf you are using a binary release, you must run this script fromwithin the directory the archive extracted into. If you compiledMySQL yourself you must run 'make install' first. 或[root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql&[1] 16874[root@bogon scripts]#FATAL ERROR: Could not find ./bin/my_print_defaultsIf you compiled from source, you need to run 'make install' tocopy the software into the correct location ready for operation.If you are using a binary release, you must either be at the toplevel of the extracted archive, or pass the --basedir optionpointing to that location. 解决方法: [root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &(这点非常重要)
相关文章推荐
- N字符在Sql Server字段类型中的重要性概述
- 写php分页时出现的Fatal error的解决方法
- fatal error LNK1104: 无法打开文件“libc.lib”的解决方法
- Fatal error: Call to undefined function curl_init()解决方法
- windows各服务端口
- 谈谈Memcached与Redis(二)
- FireFox忽然打不开了(Could not find compatible GRE between version 1.9.1.4 and 1.9.1.4.)
- NoSQL中memtable机制的改进
- LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
- vsftp上传文件出现553 Could not create file解决方法 (包括匿名用户)
- 在jbpm4.4中报错could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#7]
- android 换行符(\n) 在TextView中显示不正常的问题
- 解决CentOS_json的问题
- Fatal error: Allowed memory size of 8388608 bytes exhausted
- centos 6.3 mount NFS
- 我的大学n糊口
- KEIL C的FATAL ERROR L204
- 2012/8/21- error: Found text " >" where item ta...
- go语言 Accept error: accept tcp [::]:5551: too many open files;