1 Star 0 Fork 17

谢京/greatsql

forked from src-openEuler/greatsql 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mysql_config.sh 819 Bytes
一键复制 编辑 原始数据 按行查看 历史
GreatSQL 提交于 2022-04-24 10:55 . Release GreatSQL-8.0.25-15 for openEuler
#! /bin/bash
#
# Wrapper script for mysql_config to support multilib
#
#
# This command respects setarch, works on OL6/RHEL6 and later
isa_bits=$(rpm --eval %__isa_bits)
case $bits in
32|64) bits=$isa_bits ;;
*) bits=unknown ;;
esac
# Try mapping by uname if rpm command failed
if [ "$bits" = "unknown" ] ; then
arch=$(uname -m)
case $arch in
x86_64|ppc64) bits=64 ;;
i386|i486|i586|i686|pentium3|pentium4|athlon|ppc) bits=32 ;;
*) bits=unknown ;;
esac
fi
if [ "$bits" == "unknown" ] ; then
echo "$0: error: failed to determine isa bits on your arch."
exit 1
fi
if [ -x /usr/bin/mysql_config-$bits ] ; then
/usr/bin/mysql_config-$bits "$@"
else
echo "$0: error: needed binary: /usr/bin/mysql_config-$bits is missing. Please check your MySQL installation."
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XIE-JING-2022/greatsql.git
git@gitee.com:XIE-JING-2022/greatsql.git
XIE-JING-2022
greatsql
greatsql
master

搜索帮助