1, RPM-QA | grep MySQL//first check if MySQL 2 is installed, if installed, uninstall rpm-e MySQL 3\ http://dev.mysql.com/downloads/mysql/4, 5, Groupadd MySQL//CAN To see if this user group exists more/etc/group more/etc/passwd6\ useradd-g mysql MySQL Cmake-dcmake_install_prefix=/usr/local/mys QL \
-dmysql_unix_addr=/tmp/mysql.sock \
-ddefault_charset=utf8 \
-DDEFAULT_COLLATION=UTF8_GENERAL_CI \
-DWITH_EXTRA_CHARSETS:STRING=UTF8,GBK \
-dwith_myisam_storage_engine=1 \
-dwith_innobase_storage_engine=1 \
-dwith_memory_storage_engine=1 \
-dwith_readline=1 \
-denabled_local_infile=1 \
-dmysql_datadir=/var/mysql/data \
-dmysql_user=mysql
Make
Make install 7\ CD scripts/mysql_install_db initialize files after installing MySQL database scripts/mysql_install_db--user=mysql installation problems5.5.12mysql in Installation
EXECUTE AS 5.1
#/usr/local/mysql/scripts/mysql_install_db--user=mysql
Error occurred
FATAL error:could not find./bin/my_print_defaults
If you compiled from source, you need to run ' make install ' to
Copy the software into the correct location ready for operation.
If you is using a binary release, you must either is at the top
Level of the extracted archive, or pass the--BASEDIR option
Solve
/usr/local/mysql/scripts/mysql_install_db--defaults-file=/etc/my.cnf--basedir=/usr/local/mysql--datadir=/mnt/ MySQL--user=mysql
094 |
cp support-files/my-huge.cnf /etc/my.cnf |
101 |
chown mysql:mysql /etc/my.cnf |
102 |
chown -R mysql:mysql /mysql/mysqldir |
108 |
cp scripts/mysql_install_db . |
Linux MySQL installation issues