|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 loveeatmore 于 2019-6-21 23:14 编辑
) r0 X3 B: c% G9 r4 E0 z u: ], l( c! V2 P( j6 j: X
移植过去后尝试使用指令 ./mysql_install_db --user=root --force --ba+ A) Z" G& o3 M5 @3 I9 B$ H
sedir=/usr/local/mysql --datadir=var/lib/mysql 时出现以下错误:1 y6 q5 z" ^: U9 ~1 }9 Z9 D2 Q2 C
/usr/local/mysql/bin/my_print_defaults: line 2: T: not found
# _7 ~4 N# i# V4 n( F8 {- I _/usr/local/mysql/bin/my_print_defaults: line 8: syntax error: unexpected ")") V+ c: f& p8 }& i/ ~& Z
/usr/local/mysql/bin/my_print_defaults: line 1: ELF: not found8 J, D/ g+ H1 h3 W; q, r9 x
Installing MySQL system tables...: y# T6 w) B8 _8 {
/usr/local/mysql/libexec/mysqld: line 1: syntax error: unexpected "("0 t3 q' g# w) i3 s6 W- p
网上查询了说是shell 不一致的问题:
2 J0 M! H! O6 T0 S但是我修改本地PC配置为:
0 S1 @/ b% p# C5 m! r2 [* ]/home/shenyuan/nfs_root # echo $0
% c0 x: l! ^' Bsh
# |/ a& N; ^6 U2 }( \% K/home/shenyuan/nfs_root # ls -l /bin/sh3 w1 H9 K" v1 s" y F/ r+ {# H
lrwxrwxrwx 1 root root 12 Jun 30 22:10 /bin/sh -> /bin/busybox s9 u2 @2 n0 Q: c' c8 n
ARM端配置为:- Z/ y( M/ P0 E/ ?3 { F
root@freescale /usr/local/mysql/bin$ echo $0
1 z9 n% q: ^5 ^. `" n-sh1 q8 m' x) ]7 _4 r( H" S
root@freescale /usr/local/mysql/bin$ ls -l /bin/sh. h' w, I" i! s9 D3 n5 b' d
lrwxrwxrwx 1 root root 7 Jun 30 2018 /bin/sh -> busybox# c% K5 l1 J3 ?1 z
root@freescale /usr/local/mysql/bin$6 {9 r; ]* H! ~/ \8 s& ^
还是出现一样的问题!
+ Y* X9 M/ h! B* v; Q7 x; H3 q ^* O8 z& T( i5 p! E+ C
|
|