困扰已久的安装问题,恳请各位帮忙
很想用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
# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:13:54mysqld 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 &
这时出来以下信息:
5776
# chown: ‘mysql’: 无效的用户
Starting mysqld daemon with databases from /tmp/download/mysql-standard-5.0.0-alpha-pc-linux-i686/data
040811 15:18:12mys命名 1命名 1qld ended
+Done ./bin/mysqld_safe
为什么呀?
困扰我好久的问题,那位大侠帮我解决一下,感激不尽!
另外,那里有比较好的安装教程,请推荐一下!
谢谢! MySQL 的 *INSTALL 文档里就有安装方法……………
:?
页:
[1]