LinuxSir.cn,穿越时空的Linuxsir!

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

Mysql出错问题....

[复制链接]
发表于 2007-5-24 00:19:30 | 显示全部楼层 |阅读模式
小弟.在Suse Linux 10.2下配置Apache+mysql+php时.把三个tar.gz的包网上download下来..按照网上说的安装.可是在安装Mysql是出错了
Text:/usr/local/mysql # ./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.

WARNING: The host 'Text' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing all prepared tables
Fill help 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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h Text 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/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 http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
Text:/usr/local/mysql # nohup: redirecting stderr to stdout
chown: `mysql': invalid user
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/Text.pid
070517 23:31:35  mysqld ended
我安装的mysql-standard-4.1.20-pc-linux-gnu-i686.tar.gz可是
     我用rpm -qa |grep mysql出现下面
               mysql-shared-5.0.26.12
               libqt4-sql-mysql-4.2.1.7
是不是我的Mysql已经安装上了....   我需要把它给卸了吗?????   请高手指点.  我十分的想在linux干点事....
发表于 2007-5-24 17:42:12 | 显示全部楼层
删除安装包就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-24 21:03:25 | 显示全部楼层
是删除原来的安装包是吗?? 小弟是初学者.   在安装新的.
回复 支持 反对

使用道具 举报

发表于 2007-5-25 01:29:33 | 显示全部楼层
你下tar.gz,做configure/make, 这是通过源代码包安装,一般不推荐新手使用。推荐使用yum, apt-get自动安装二进制包。你mysql已经有了,就不用装了。用这个命令看看,说不定mysql server进程已经在运行了。
$ ps aux|grep mysql
回复 支持 反对

使用道具 举报

发表于 2007-5-25 09:04:03 | 显示全部楼层
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

不是吧,这是二进制的,不用编译安装了的
你下的不是源码包
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-25 12:52:21 | 显示全部楼层
谢谢各位.我回去试试看.不行在麻烦你们   嘿嘿.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-25 12:57:31 | 显示全部楼层
php-5.2.2.tar.gz  
mysql-standard-4.1.20-pc-linux-gnu-i686.tar.gz
httpd-2.2.4.tar.gz
我用的是这三个,请指点.是为什么..我很想成功的.谢谢
或者给我推荐更好的.谢谢大家.....
回复 支持 反对

使用道具 举报

发表于 2007-5-25 16:20:58 | 显示全部楼层
需要 mysql 用户。
man useradd 看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-29 13:17:47 | 显示全部楼层
我试过了.还是不能./configure --prefix=/usr/local/mysql.
于是我就用Yast安装了自带的mysql
但是我不知道.怎么启动自带的
thks
回复 支持 反对

使用道具 举报

发表于 2007-5-30 07:34:57 | 显示全部楼层
YaST里面似乎有开机服务管理。另外试试命令行有没有类似/etc/init.d/mysql
的启用脚本,以root运行即可。
# /etc/init.d/mysql start
回复 支持 反对

使用道具 举报

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

本版积分规则

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