| 
 | 
 
make 
make install 均已成功,但是 bin/mysql_install_db  bin/mysql_install_db 报错 Could not find  bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql 
 
mkdir: 无法创建目录 “/usr/local/mysql/mysql”: Permission denied 
chmod: 无法访问 “/usr/local/mysql/mysql”: 没有该文件或目录 
mkdir: 无法创建目录 “/usr/local/mysql/test”: Permission denied 
chmod: 无法访问 “/usr/local/mysql/test”: 没有该文件或目录 
Installing MySQL system tables... 
100319 11:09:45 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead. 
100319 11:09:45 [Warning] Can't create test file /usr/local/mysql/ubuntu.lower-test 
100319 11:09:45 [Warning] Can't create test file /usr/local/mysql/ubuntu.lower-test 
/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13) 
100319 11:09:45 [ERROR] Aborting 
 
100319 11:09:45 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete 
 
 
Installation of system tables failed!  Examine the logs in 
/usr/local/mysql for more information. 
 
You can try to start the mysqld daemon with: 
 
    shell> /usr/local/mysql/libexec/mysqld --skip-grant & 
 
and 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 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/local/mysql/scripts/mysqlbug script! 
 
lieyia@ubuntu:/usr/local/mysql$ sudo gedit /etc/my.cnf 
lieyia@ubuntu:/usr/local/mysql$ bin/mysql_install_db --user=mysql  
 
FATAL ERROR: Could not find /usr/local/bin/my_print_defaults 
 
If you compiled from source, you need to run 'make install' to 
copy the software into the correct location ready for operation. 
 
If you are using a binary release, you must either be at the top 
level of the extracted archive, or pass the --basedir option 
pointing to that location. 
 
lieyia@ubuntu:/usr/local/mysql$ bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data 
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied 
chmod: 无法访问 “/usr/local/mysql/data”: 没有该文件或目录 
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied 
chmod: 无法访问 “/usr/local/mysql/data/mysql”: 没有该文件或目录 
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied 
chmod: 无法访问 “/usr/local/mysql/data/test”: 没有该文件或目录 
Installing MySQL system tables... 
100319 11:16:09 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead. 
100319 11:16:09 [Warning] Can't create test file /usr/local/mysql/data/ubuntu.lower-test 
100319 11:16:09 [Warning] Can't create test file /usr/local/mysql/data/ubuntu.lower-test 
/usr/local/mysql/libexec/mysqld: Can't change dir to '/usr/local/mysql/data/' (Errcode: 2) 
100319 11:16:09 [ERROR] Aborting 
 
100319 11:16:09 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete 
 
 
Installation of system tables failed!  Examine the logs in 
/usr/local/mysql/data for more information. |   
 
 
 
 |