#make #make install #make clean #cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf #groupadd mysql
#useradd -g mysql mysql
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql #建立基本数据库,必须指明为mysql用户,出现如下: Preparing db table Preparing host table Preparing user table Preparing func table Preparing tables_priv table Preparing columns_priv table Installing all prepared tables Unknown suffix used for variable 'port' (value ) 080425 4:38:40 /usr/local/mysql/libexec/mysqld: Error while setting value to 'port'
Installation of grant tables failed!
Examine the logs in /usr/local/mysql/var 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/var that may be helpful.
The latest information about MySQL is available on the web at