论坛风格切换切换到宽版
  • 981阅读
  • 5回复

[问题求助][RedHat] 求助,安装mysql出错 [复制链接]

上一主题 下一主题
离线304334153.
 
发帖
1993
C币
-60439
威望
374
贡献值
6
银元
2
铜钱
4456
人人网人气币
0
只看楼主 正序阅读 使用道具 楼主  发表于: 2009-05-01
我.在安装mysql时遇到一点问题,c.onfigure,make和makeinstall都没有问题,接下来是
这个命令(注,在mysql的根目录下执行的,我的安装路径是/usr/lo.ca.l/mysql)?in/mys.
ql_install_db --usr=mysq.l.,结果显示如下结果:电影
Installing all prepared t.ables..
051029 19.:17:09 [ERROR] /usr/local/mysql/libexec/.m.ysqld: unknown variable 'us             电子
r=mysql'

Installation of syst..em tables failed!    外汇

Examine the l.ogs in /usr/local/mysql/var for more informatio.n.健康
You .can also t.ry to start the mysqld daemon with:.
/usr/local/mysql/l.ibexec/mysqld. --skip-grant &            杀毒
You can use the .command l.ine tool.
/usr/local/.mysql/bin/mysql to connect to .the mysql虚拟主机
da.tabase and look at the gran.t tables:.

shell> /usr/local/mysql/bin./mysql -u r.oot mysql
m.ysql> show tables.

Try 'mysqld --help' if you have problems with paths. Using --..log          婚庆
gives you a log in /usr/local/mysql/var .that may be help.ful.            杀毒

The latest information about MyS.QL is available on .the web at.
http://www.mysql.com.
Please consult the MySQL manual secti.on: 'Problems .ru.nning mysql_install_db',.

and the manual sect.ion that describes problems on yo.ur OS.学习
Another information source is .the MyS.QL email archive.           鲜花
Pleas.e check all of the above before mail.ing us!           建材
And i.f you do mail us, you MUST use the /us.r/local/mysql/bin/.mysqlbug script域名

请问该如何解决??

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
发帖
1955
C币
-235598
威望
340
贡献值
1
银元
-4
铜钱
4341
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-14
Re:[RedHat]
你的变量--user=mysql指定错了, 那个脚本根本没有正常运行, 肯定不会生成mysql和test数据库中的文件。
发帖
2180
C币
-235163
威望
406
贡献值
1
银元
-1
铜钱
4811
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-14
Re:[RedHat]
var目录下有mysql和test目录,可目录下没有文件

离线yueyehan.
发帖
2105
C币
-235151
威望
397
贡献值
1
银元
-3
铜钱
4728
人人网人气币
0
只看该作者 地板  发表于: 2010-04-14
Re:[RedHat]


QUOTE:--usr=mysql

--user=mysql
检查是否有var目录生成,var目录下面是否有mysql 目录和test目录 目录下是否有文件

离线haikung.
发帖
1977
C币
-152724
威望
335
贡献值
1
银元
-2
铜钱
4311
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-14
Re:[RedHat]


QUOTE:原帖由 gamester88 于 2009-1-7 08:27 发表
--usr=mysql

unknown variable 'usr=mysql'

楼主是不是命令写错了呢

对啊,是不是  --user=mysql,或者有mysql这个用户吗

离线manbunet.
发帖
1923
C币
-61046
威望
353
贡献值
2
银元
-2
铜钱
4301
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-14
Re:[RedHat]
--usr=mysql

unknown variable 'usr=mysql'

楼主是不是命令写错了呢

快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个