cluster SQL节点搭建小问题:Could not find ./bin/my_print_defaults
SQL 节点安装步骤如下:
解压文件
shell>tar -zxvf mysql-cluster-gpl-7.3.7-linux-glibc2.5-i686.tar.gz
拷贝安装文件
shell>mv /home/David/cluster/mysql-cluster-gpl-7.3.7-linux2.6-x86_64 /usr/local/mysql
添加mysql用户
shell>groupadd mysql
shell>useradd -g mysql mysql
添加权限
shell>chown -R mysql:mysql /usr/local/mysql
拷贝配置文件
shell>cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
初始化数据库
shell>cd /usr/local/mysql
shell>scripts/mysql_install_db --user=mysql
报错:
sh: 1: ./bin/my_print_defaults: not found
FATAL ERROR: Neither host 'ubuntu' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
本人采用了如下方法来解决:
解决方法1:
查看 /etc/hosts, 其内容如下:
127.0.0.1 localhost
127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1 localhost,localhost.localdomain
172.3.200.159 localhost,localhost.locqaldomain
完全符合网上所说“要添加 127.0.0.1 localhost到/etc/hosts文件中“。最后一行”172.3.200.159“是本人的ip地址。
解决方法2:
修改 ~/.bashrc文件的内容:
vi ~/.bashrc
export PATH=/usr/local/mysql/bin:$PATH
source ~/.bashrc
重新启动机器,重新执行命令:scripts/mysql_install_db --user=mysql
出现了如下错误:
FATAL ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
又参考网页: http://blog.sina.com.cn/s/blog_546cc4350101g1pj.html
执行命令:/usr/local/mysql/scripts/mysql_install_db –user=mysql –basedir=/usr/local/mysql –datadir=/usr/local/mysql/data &
又出现error:
root@ubuntu:/usr/local/mysql/bin# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &
[1] 2264
root@ubuntu:/usr/local/mysql/bin# sh: 1: /usr/local/mysql/bin/my_print_defaults: not found
FATAL ERROR: Neither host 'ubuntu' nor 'localhost' could be looked up with
/usr/local/mysql/bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
采用以上两种方法,仍然无法解决问题,到底该如何解决了???
请告诉帮忙解答,谢谢!
相关推荐
Flink原理与实战(java版)#第11章Flink的应用(整章)
分别介绍了Flink的CDC及与Flink集成、通过Flink CDC将MySQL数据实时同步到Elasticsearch和Table API & SQL的外部连接器Hive的应用。
Linux下MySQL日志管理全解析与优化实践
数据库日志管理是确保系统稳定性和性能优化的关键技术环节。MySQL在Linux环境下产生的各类日志(如错误日志、二进制日志、慢查询日志等)记录了数据库运行的关键信息,通过合理配置和分析这些日志,可以有效进行故障排查、性能优化和数据恢复。日志管理的核心在于平衡记录详细度与系统性能,例如通过logrotate实现日志轮转,或使用ROW格式的二进制日志确保主从复制数据一致性。在生产环境中,结合ELK等工具链实现日志集中分析,或通过Prometheus监控关键指标,能够显著提升运维效率。本文以MySQL日志体系为例
JEP30-PX100A PartModel Product Guidelines for Electronic-Device Substrates and Assemblies – XML Requ
JEP30-PX100A PartModel Product Guidelines for Electronic-Device Substrates and Assemblies – XML Requirements
基于Matlab的自动睡眠粒状结构检测算法,从脑电信号中进行。.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
JEP375 2.5D_3D Silicon thinned wafers with Through Silicon Vias (TSV’s) and Backside Redistribution
JEP375 2.5D_3D Silicon thinned wafers with Through Silicon Vias (TSV’s) and Backside Redistribution Layer (RDL).pdf


