Initialiser Mysql

Tout d'abord il faut copier le fichier /etc/my-large.cnf vers /etc/my.cnf

# cp -a /etc/my-large.cnf /etc/my.cnf

Éditez le fichier et ajoutez/modifiez les lignes suivantes :

[mysqld]
character-set-server = utf8
max_allowed_packet = 16M
expire_logs_days = 30
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 2

Ensuite vous pouvez initialiser le répertoire de travail /var/lib/mysql :

# mysql_install_db -u mysql

Lancez le serveur mysqld :

# /etc/rc.d/rc.mysqld start

Et finalement sécurisez le tout :

# mysql_secure_installation

Voilà, c'était rapide !

tuto/mysql_init.txt · Dernière modification : 2010/10/06 12:02 de Thomas
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0