免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2443 | 回复: 0
打印 上一主题 下一主题

[Web] 安装mysql报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-16 14:14 |只看该作者 |倒序浏览
本帖最后由 46212635 于 2011-11-16 14:16 编辑

mysql版本5.0.28
  1. ./configure --prefix=/usr/local/mysql --with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock --localstatedir=/usr/local/mysql/database/mysql_data --enable-assembler --with-mysqld-user=mysql;
复制代码
安装完成,没报错

然后我运行mysql_install_db时报错
安装方法如下
  1. [root@localhost mysql]# bin/mysql_install_db  --user=mysql
  2. Installing all prepared tables
  3. Unknown suffix '@' used for variable 'port' (value '@MYSQL_TCP_PORT@')
  4. 111115 22:10:45 [ERROR] /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'

  5. Installation of system tables failed!

  6. Examine the logs in /usr/local/mysql/database/mysql_data for more information.
  7. You can also try to start the mysqld daemon with:
  8. /usr/local/mysql/libexec/mysqld --skip-grant &
  9. You can use the command line tool
  10. /usr/local/mysql/bin/mysql to connect to the mysql
  11. database and look at the grant tables:

  12. shell> /usr/local/mysql/bin/mysql -u root mysql
  13. mysql> show tables

  14. Try 'mysqld --help' if you have problems with paths. Using --log
  15. gives you a log in /usr/local/mysql/database/mysql_data that may be helpful.

  16. The latest information about MySQL is available on the web at
  17. http://www.mysql.com
  18. Please consult the MySQL manual section: 'Problems running mysql_install_db',
  19. and the manual section that describes problems on your OS.
  20. Another information source is the MySQL email archive.
  21. Please check all of the above before mailing us!And if you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script!
复制代码
查看日志 tail -f /usr/local/mysql/database/mysql_data/localhost.err
  1. /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'

  2. 111114 00:52:02  mysqld ended

  3. 111114 00:55:10  mysqld started
  4. Unknown suffix '@' used for variable 'port' (value '@MYSQL_TCP_PORT@')
  5. 111114  0:55:10 [ERROR] /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'

  6. 111114 00:55:10  mysqld ended
复制代码
请问这是为什么啊?怎么解决啊,谢谢大家
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP