LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1516|回复: 15

MYSQL求助!!

[复制链接]
发表于 2002-12-29 23:03:14 | 显示全部楼层 |阅读模式
现在新版的MYSQL不能编译。。。我批的是二进制代码包的MYSQL。

有那位有装过。。请教教小弟。。。

直接解压。。CP到/usr/local运行scripts/mysql_install_db 就出现下面第二贴的错误提示。。请各位帮帮忙吧。。APACHE、PHP、CGI、SSL都能装。就是MYSQL装不了。。。我又不想用RPM包。
 楼主| 发表于 2002-12-30 03:47:46 | 显示全部楼层
我用的版本是
mysql-3.23.54a-pc-linux-i686.tar.gz
安这里说的安装也不行
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=2085

错误提示
Installing all prepared tables
021230  3:45:56  ./bin/mysqld: Shutdown Complete


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 odin  password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

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

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; 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

[root@odin mysql]# scripts/mysql_install_db
Installing all prepared tables
021230  3:45:56  ./bin/mysqld: Shutdown Complete


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 odin  password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

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

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; 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
发表于 2002-12-30 11:11:00 | 显示全部楼层

不是已经装好了吗???

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

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests
发表于 2002-12-30 11:11:18 | 显示全部楼层
try to compile from source(?)
 楼主| 发表于 2002-12-30 16:55:09 | 显示全部楼层
不行。。。启动不了。。。我用safe_mysqld --user=mysql &
启动。。就说找不到VAR目录。。。因为我他根本都执行不了mysql_install_db。。所以他加VAR的目录都没有成生。。
 楼主| 发表于 2002-12-30 16:57:09 | 显示全部楼层
从原文件安装,不行啊。。执行./confugure 就出现第二贴情况。
发表于 2002-12-30 17:15:53 | 显示全部楼层
进入您所安装的mysql的目录,执行一下,
#./safe_mysqld &
或许在/usr/bin目录中执行

#./safe_mysqld &
 楼主| 发表于 2002-12-30 18:20:19 | 显示全部楼层
进入您所安装的mysql的目录,执行一下,
#./safe_mysqld &
提示
Starting mysqld daemon with databases from /usr/local/mysql/data
021230 18:20:58  mysqld ended

或许在/usr/bin目录中执行

#./safe_mysqld &
无任何提未。。。

如果执行在mysql的目录,执行
./safe_mysqld --user=mysql &
提示
The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable
Please do a cd to the mysql installation directory and restart
this script from there as follows:
./bin/safe_mysqld.


如果执行./mysql_install_db
提示
./mysql_install_db: line 1: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
请各位帮个忙

 楼主| 发表于 2002-12-31 01:32:55 | 显示全部楼层
问题解决了。。。找个时交再交流一下经验
发表于 2002-12-31 11:48:09 | 显示全部楼层
怎么解决的
可否告知小弟
小弟也遇到这样的问题了
是不是不需要编译呀!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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