‘
shell> groupadd mysql
shell> useradd -g' mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSIONavec aptitude' recuperer:
libtool
g++
libstdLancer le script suivant:
#!/bin/sh
CFLAGS=-O3''
CXX=gcc
CXXFLAGS=''-O3 -felide-constructors' -fno-exceptions -fno-rtti''
./configure --prefix=/opt/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-collation=utf8_general_ci' --with-charset=utf8 --with-plugins=maxshell> make
shell> make install
shell> cd /opt/mysql
shell> chown -R mysql:mysql .
shell> mkdir ata'/'iblogs
shell> chown -R mysql data
shell> chown -R mysql /var/run/mysqldVerifier la config my.cnf (valoriser les repertoires data pour' innodb)
installer la base
shell> bin/mysql_install_db --user=mysqldemarrer en mode safe:
shell> mysqld_safechanger le password' root
update mysql.user set Password=PASSWORD('...') where user='root';Créer le user debian:
mysql> create user 'debian-sys-maint'@'localhost' identified' by '...';
mysql> grant shutdown'