- 论坛徽章:
- 0
|
本帖最后由 46212635 于 2011-11-16 14:16 编辑
mysql版本5.0.28- ./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时报错
安装方法如下- [root@localhost mysql]# bin/mysql_install_db --user=mysql
- Installing all prepared tables
- Unknown suffix '@' used for variable 'port' (value '@MYSQL_TCP_PORT@')
- 111115 22:10:45 [ERROR] /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'
- Installation of system tables failed!
- Examine the logs in /usr/local/mysql/database/mysql_data for more information.
- You can also try to start the mysqld daemon with:
- /usr/local/mysql/libexec/mysqld --skip-grant &
- You can use the command line tool
- /usr/local/mysql/bin/mysql to connect to the mysql
- database and look at the grant tables:
- shell> /usr/local/mysql/bin/mysql -u root mysql
- mysql> show tables
- Try 'mysqld --help' if you have problems with paths. Using --log
- gives you a log in /usr/local/mysql/database/mysql_data 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 is the MySQL email archive.
- 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- /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'
- 111114 00:52:02 mysqld ended
- 111114 00:55:10 mysqld started
- Unknown suffix '@' used for variable 'port' (value '@MYSQL_TCP_PORT@')
- 111114 0:55:10 [ERROR] /usr/local/mysql/libexec/mysqld: Error while setting value '@MYSQL_TCP_PORT@' to 'port'
- 111114 00:55:10 mysqld ended
复制代码 请问这是为什么啊?怎么解决啊,谢谢大家 |
|