- 论坛徽章:
- 0
|
具体操作过程如下:
sudo su
grep mysql /etc/passwd
groupadd -g 451 mysql
useradd -u 451 -g 451 -d /usr/local/mysql/ mysql
cd /usr/local/
tar -zvxf /home/mrh/mysql-5.1.23-rc-linux-i686-glibc23.tar.gz
ln -s mysql-5.0.51a-linux-i686-glibc23 mysql
cd mysql/
./scripts/mysql_install_db –user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe –user=mysql &
到这 ./scripts/mysql_install_db –user=mysql 时 显示如下:
----------------------------------------------------------
Installing MySQL system tables...
OK
Filling help tables...
OK
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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h mrh-desktop password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/
----------------------------------------------------------
一直到 bin/mysqld_safe --user=mysql & 这里就出问题了,mysql运行不了 显示如下:
-----------------------------------
[1] 6585
root@mrh-desktop:/usr/local/mysql# 081106 20:57:26 mysqld_safe Logging to '/usr/local/mysql/data/mrh-desktop.err'.
081106 20:57:26 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
---------------------------------------
root@mrh-desktop:/usr/local/mysql# mysql -u root
程序 'mysql' 尚未安装。 您可以通过输入以下命令安装:
apt-get install mysql-client-5.0
bash: mysql:找不到命令
··············································································································································
原来是我的包有问题 重新下了个包 安装成功
ubuntu 8.04下
linux+apache+mysql+php配置
地址:http://hi.baidu.com/mrico/blog/item/cc0ae633d892c644ad4b5fdf.html
[ 本帖最后由 mrh111 于 2008-11-10 11:38 编辑 ] |
|