|
环境:MANDRIVA 2007
安装时选择了开发项
所作工作:
下载源码 mysql-5.0.22.tar.gz
将源码复制到 /home/lujia/ 下
1. tar -zxvf mysql-5.0.22.tar.gz
2. cd mysql-5.0.22
3. groupadd mysql
4. useradd -g mysql mysql
5. ./configure --prefix=/usr/local/mysql
6. make
7. make install cd /usr/loacl/mysql
8. cp support-files/my-medium.cnf /etc/my.cnf
9. bin/mysql_install_db --user=mysql
10. chown -R root .
11. chown -R mysql var
12. charp -R mysql .
13. bin/mysqld_safe --user=mysql &
第五步提示 thank you for choosing mysql 配置成功
第6步 没有提示错误
第7步也没有提示错误
第9步提示: /usr/local/mysql/libexec/mysqld: cna't read dir of '/root/tmp/'(errcode:1 3)
to start mysqld at boot time you have to copy support-files/mysql.server to right palce for you systen
作如下工作:chmod 777 /root/tmp/
cp support-files/mysql.server /etc/rc.d/init.d/mysqld
重试 /usr/local/mysql/bin/mysql_install_db --user=mysql
提示:bash : mysql_install_db: command mot found
cd bin
ls
发现mysql_install_db 再BIN文件夹中
请各位高手指点一下 |
|