QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1003|回复: 1

困扰已久的安装问题,恳请各位帮忙

[复制链接]
发表于 2004-8-11 16:01:19 | 显示全部楼层 |阅读模式
很想用mysql+php+apache+linux来搭建一个属于自己的网站,可是摸索了几天,还是有好多安装问题。我先装的是mysql,可是老失败,各位指教一下喽,谢谢!

安装软件包:mysql-standard-5.0.0-alpha-pc-linux-i686.tar.gz
用tar zxvf解压缩很正常。在这里我把它解压到/tmp/download下,然后进入mysql-standard-5.0.0-alpha-pc-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 all prepared tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h shanhu password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please 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 https://order.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@shanhu mysql-standard-5.0.0-alpha-pc-linux-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:13:54  mysqld ended

看提示信息似乎没有必要再进行configure,make和make install。
于是,我进行下一步:修改密码
./bin/mysqladmin -u rootpassword 'cxzcau'
这时出来以下提示信息:
./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!

于是,我执行以下命令以运行mysql
./bin/mysqld_safe &
这时出来以下信息:
[1] 5776
[root@shanhu mysql-standard-5.0.0-alpha-pc-linux-i686]# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:18:12  mys命名 1命名 1qld ended


[1]+  Done                    ./bin/mysqld_safe

为什么呀?
困扰我好久的问题,那位大侠帮我解决一下,感激不尽!

另外,那里有比较好的安装教程,请推荐一下!

谢谢!
发表于 2004-8-11 16:26:34 | 显示全部楼层
MySQL 的 *INSTALL 文档里就有安装方法……………
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 14:33 , Processed in 0.111844 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表