mysql在linux下安装的问题,谢谢。
我用我的账户在一台机器上安装mysql4.0.12
目录结构如下:
/home/profan/
profan是我的账户
/home/profan/soft 是软件存放的地方。
/home/profan/usr/mysql 我要安装mysql的目录.
用如下configure命令。
./configure --prefix=/home/profan/usr/mysql --with-tcp-port=3366 --with-unix-socket=/home/profan/tmp/mysql.sock
然后运行/home/profan/usr/mysql/bin
./mysql_install_db
但是出现这种错误:
------------------------------------------------
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
ERROR: 1 Can't create/write to file './mysql/db.frm' (Errcode: 13)
030512 14:32:02 /home/guorui/usr/mysql//libexec/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/home/guorui/usr/mysql//bin/mysqladmin -u root password 'new-password'
/home/guorui/usr/mysql//bin/mysqladmin -u root -h systest01.baidu.com password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /home/guorui/usr/mysql/ ; /home/guorui/usr/mysql//bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /home/guorui/usr/mysql//bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
---------------------------------------------------------------------
而且mysql.sock也没有创建。
谢谢。