今天在GUN Taso Debian Linux下安装MySql 5.0.67时,运行命令./configure --prefix=/usr/local/mysql后,提示失败。错误代码如下:root@admingnu-desktop:/home/admingnu/文档/software/mysql-5.0.67-linux-i686# ./configure --prefix=/usr/local/mysql
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.Installing MySQL system tables...
100910 19:28:23 [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072
OK
Filling help tables...
100910 19:28:23 [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h admingnu-desktop password 'new-password'Alternatively you can run:
./bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.plPlease report any problems with the ./bin/mysqlbug script!The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
root@admingnu-desktop:/home/admingnu/文档/software/mysql-5.0.67-linux-i686# nohup: 重定向标准错误到标准输出
Starting mysqld daemon with databases from /home/admingnu/文档/software/mysql-5.0.67-linux-i686/data
STOPPING server from pid file /home/admingnu/文档/software/mysql-5.0.67-linux-i686/data/admingnu-desktop.pid
100910 19:28:23  mysqld ended之后运行make指令时,提示找不动目标,请问有哪位知道是什么地方动问题吗?还望大家不吝赐教。

解决方案 »

  1.   

    linux安装问题没有WINDOWS那样好解决。为什么不用Redhat,Linux服务器中Redhat始终第一位,装Mysql做数据库服务器具有绝对优势,而且对Mysql的兼容性非常好的。
    学点东西不容易,最怕进错门的。
      

  2.   

    出现问题 自己也不仔细看看
    首先看看第一句提示NOTE: This is a MySQL binary distribution. It's ready to run, you don't
    need to configure it!
    -------------------
    你这是已经编译好了二进制免安装版  直接初始化数据库 就可以使用了!你现在要做的是 用root在这个目录下做如下操作
    #cp support-files/mysql.server /etc/init.d/mysql
    #./bin/mysqladmin -u root password '你管理mysql的密码'
    #/etc/init.d/mysql restart
      

  3.   

    上面的要是不行 你就换一下命令的执行顺序
    #cp support-files/mysql.server /etc/init.d/mysql
    #/etc/init.d/mysql restart
    #./bin/mysqladmin -u root password '你管理mysql的密码'
    现在mysql的启动脚本已经复制到/etc/init.d/mysql了
    你可以用update-rc.d mysql defaults命令把mysql添加到开机启动
      

  4.   


    好像还是有问题,运行第二条指令时,报错:
    root@admingnu-desktop:/home/admingnu/文档/software/mysql-5.0.67-linux-i686# ./bin/mysqladmin -u root password 'root'
    ./bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
      

  5.   

    Installing MySQL system tables...
    100910 19:28:23 [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072
    OK
    Filling help tables...
    100910 19:28:23 [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072
    OK感觉应该是这里有问题