修改mysql数据库位置
/usr/local/mysql/bin/mysqld_safe
260几行 默认是/usr/local/mysql/var
elif test -d $MY_BASEDIR_VERSION/var/mysql
then
DATADIR=/home/db/var
# Or just give up and use our compiled-in default
else
DATADIR=/home/db/var
数据库调用数据出现问号
对比4.0发现
cd ../mysql
./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all –without-debug –with-mysqld-ldflags=-all-static
make
make install clean
主要是FAMP5.1.0beta3安装MYSQL时候没加–with-charset=gbk 这个导致的