These are the steps I followed:
mysql-5.6.16.tar.gz
to /usr/local/src
cd /usr/local/src
tar -zxvf mysql-5.6.16.tar.gz
cp /usr/local/src/mysql-5.6.16 /usr/local/mysql/
cd /usr/local/mysql
mysql
with user mysql
chown -R mysql .
chgrp -R mysql .
cmake .
make
make install
But I got an error running this command:
scripts/mysql_install_db.sh --user=mysql --datadir=/usr/local/mysql/data
bash:
scripts/mysql_install_db.sh
: Permission denied
I am doing all these steps with root
user.
Any suggestion to make it work. Please provide me the full steps to install MySQL 5.6.16 on Debian by compiling the tar.gz
file.
Does scripts/mysql_install_db.sh
have execute permission?
(check with ls -l scripts/mysql_install_db.sh
)
If not, you can
add execution permission to it by
chmod a+x scripts/mysql_install_db.sh
or
sh scripts/mysql_install_db.sh ...
.