斑竹,看你置顶的帖子弄了一天也没搞定mysql,无奈之下才来打扰.
我解压所以后,按照这个步骤装完 总提示出错
groupadd mysql
useradd mysql -g mysql -M -s /bin/false
./configure --prefix=/web/mysql
make
make install
scripts/mysql_install_db
cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysqld
chmod 700 /etc/init.d/mysqld
cd /web
chmod 750 mysql -R
chgrp mysql mysql -R
chown mysql mysql/var -R
cd /web/mysql/libexec
cp mysqld mysqld.old
strip mysqld
chkconfig --add mysqld
chkconfig --level 345 mysqld on
service mysqld start
运行后提示
Starting mysqld daemon with databases from /web/mysql/var
/web/mysql/bin/mysqld_safe: line 320: 11035 段错误 $NOHUP_NICENESS $ledir/$MYSQLD $defaults --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file --skip-locking >>$err_log 2>&1
050130 22:02:50 mysqld ended
日志文件显示
050130 22:02:50 mysqld started
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=16777216
read_buffer_size=131072
050130 22:02:50 mysqld ended
050130 22:55:31 mysqld started
InnoDB: Error: auto-extending data file ./ibdata1 is of a different size
InnoDB: 0 pages (rounded down to MB) than specified in the .cnf file:
InnoDB: initial 640 pages, max 0 (relevant if non-zero) pages!
InnoDB: Could not open data files
050130 22:55:32 Can't init databases
050130 22:55:32 Aborting
谁帮我解决,我是红旗4.1桌面版