发新话题
 搜藏 打印 该页面添加到 Mister Wong

Mandriva2008如何安装mysql5

Mandriva2008如何安装mysql5

我的电脑安装了Mandriva 2008 free,KDE桌面环境,下载了MySQL-server-community-5.1.26-0.rhel5.i386.rpm,用root用户在命令行下
rpm -ivh MySQL-server-community-5.1.26.0.rhel5.i386.rpm进行安装时,有如下报错信息:
arning: netfs is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: netfs is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
Warning: fuse is needed by mysql in runlevel 2
ERROR: 1004  Can't create file '/root/tmp/#sql6c4d_1_0.frm' (errno: 13)
080830  4:45:17 [ERROR] Aborting

080830  4:45:17 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com/.  Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

Giving mysqld 2 seconds to start
请问各位该如何安装mysql5,或下载什么样的版本(mysql官网上没找到for mandriva的mysql版本)?或采取什么样的方式进行安装?

另外,我还下了个mysql-5.1.26-rc-linux-i686-icc-glibc23.tar.gz东西解压缩后找不到configure,直接运行又不得,安装又不懂?郁闷了。。。

本文由usrhdskf 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-7190-1-1.html

TOP

依赖关系问题,为什么不用Mandriva 自带呢,ISO 里有,源里也有。

TOP

再问

谢版主,在版主提示下装上了自带的mysql5,mysql用户和组已经存在,但用命令mysql进行连接时报错:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
用netstat -tln查看不到3306端口,在/tmp和/var/lib/mysql下都找不到mysql.sock,是不是服务没启动,怎么启动啊?
直接用mysqld命令时,报
mysqld: Can't create/write to file '/root/tmp/ibOndYRq' (Errcode: 13)
080901 15:26:05  InnoDB: Error: unable to create temporary file; errno: 13
080901 15:26:05 [Note] mysqld: ready for connections.
Version: '5.0.51a'  socket: '/var/lib/mysql/mysql.sock'  port: 0  Mandriva Linux
然后停在控制台不动了。
该如何操作,请求帮助,谢谢了先。。。

TOP

帮啊

这个数据库问题已经困挠俺半个多月了,离开了数据库,俺这linux也支撑不了多久,工作需要,就差这一个了。哪位朋友曾经在mandriva上安装成功过mysql的分享一下经验啊,俺只要能用就行,不管用什么方法来搞定。。。

TOP

应该是mysqld 没启动。还有你装的是.rhel5.i386.rpm 是给Redhat 系统的,你找for Mandriva 的。
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

发新话题