I want to install mysql on Ubuntu, but I don't want to use the "sudo apt-get install mysql-server" command.
So, I download the mysql-5.5.21-linux2.6-i686.tar.gz. and then execute the following command:
shell> groupadd mysql shell> useradd -r -g mysql mysql shell> cd /usr/local shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql_install_db --user=mysql When I execute the "scripts/mysql_install_db --user=mysql", I always get the error:chown: changing ownership of `./data': Operation not permitted
Cannot change ownership of the database directories to the 'mysql'
user. Check that you have the necessary permissions and try again.And when I execute "ls -all":drwxr-xr-x 13 mysql mysql 4096 2012-03-10 14:48 .
drwxr-xr-x 11 root root 4096 2012-03-10 14:48 ..
drwxr-xr-x 2 mysql mysql 4096 2012-03-10 14:47 bin
-rw-r--r-- 1 mysql mysql 17987 2012-01-31 19:28 COPYING
dr-xrwxrwx 4 mysql mysql 4096 2012-03-10 14:47 data
drwxr-xr-x 2 mysql mysql 4096 2012-03-10 14:48 docs
drwxr-xr-x 3 mysql mysql 4096 2012-03-10 14:47 include
-rw-r--r-- 1 mysql mysql 7604 2012-01-31 19:28 INSTALL-BINARY
drwxr-xr-x 3 mysql mysql 4096 2012-03-10 14:48 lib
drwxr-xr-x 4 mysql mysql 4096 2012-03-10 14:47 man
drwxr-xr-x 10 mysql mysql 4096 2012-03-10 14:48 mysql-test
-rw-r--r-- 1 mysql mysql 2552 2012-01-31 19:28 README
drwxr-xr-x 2 mysql mysql 4096 2012-03-10 15:05 scripts
drwxr-xr-x 27 mysql mysql 4096 2012-03-10 14:47 share
drwxr-xr-x 4 mysql mysql 4096 2012-03-10 14:48 sql-bench
drwxr-xr-x 2 mysql mysql 4096 2012-03-10 14:48 support-filesWhat's wrong? This is my first time to install mysql on Ubuntu.Could anyone help me? Thanks very much.
| Thread |
|---|
| • How to execute the "scripts/mysql_install_db --user=mysql"? | 怪侠 | 10 Mar |