initialisation de la base mysql
Bonjour,
Après avoir installé mysql 5.5 dans debian 8, je cherche à initialiser une base vierge dans /data/csu/mysql/base.
Et après la commande:
Code:
rm -R /data/csu/mysql/base/
Je lance la commande suivante en root:
Code:
/usr/bin/mysql_install_db --defaults-file=/data/csu/mysql/param/my.cnf --datadir=/data/csu/mysql/base --basedir=/usr --user=mysql_csu --rpm
ou
Code:
/usr/bin/mysql_install_db --defaults-file=/data/csu/mysql/param/my.cnf --rpm
J'ai en retour ce message d'erreur:
Code:
1 2 3 4 5 6 7
| 180619 16:56:35 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
180619 16:56:35 [Note] /usr/sbin/mysqld (mysqld 5.5.60-0+deb8u1-log) starting as process 14993 ...
180619 16:56:35 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
180619 16:56:35 [Warning] Can't create test file /data/csu/mysql/base/debian.lower-test
180619 16:56:35 [Warning] Can't create test file /data/csu/mysql/base/debian.lower-test
/usr/sbin/mysqld: Can't change dir to '/data/csu/mysql/base/' (Errcode: 2)
180619 16:56:35 [ERROR] Aborting |
voici le my.cnf utilisé:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
| [client]
port = 32542
socket = /data/csu/mysql/tmp/mysqld.sock
[mysqld_safe]
socket = /data/csu/mysql/tmp/mysqld.sock
port = 32542
nice = 0
[mysqld]
debug-check = 1
debug-info = 1
#
# * Basic Settings
#
user = mysql_csu
pid-file = /data/csu/mysql/tmp/mysqld.pid
socket = /data/csu/mysql/tmp/mysqld.sock
port = 32542
basedir = /usr
datadir = /data/csu/mysql/base
tmpdir = /data/csu/mysql/tmp
lc-messages-dir = /usr/share/mysql/english
#lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size = 16M
#key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
general_log_file = /data/csu/mysql/tmp/mysql.log
general_log = 1
#
# Error log - should be very few entries.
#
log_error = /data/csu/mysql/log/error.log
#
# Here you can see queries with especially long duration
slow_query_log_file = /data/csu/mysql/log/mysql-slow.log
slow_query_log = 1
long_query_time = 2
log_queries_not_using_indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
log_bin = /data/csu/mysql/log/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog_do_db = include_database_name
binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
chroot = /data/csu/mysql/base
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
[mysqladmin]
protocol=TCP
port=32542
[mysqlcheck]
protocol=TCP
port=32542
[mysql_upgrade]
protocol=TCP
port=32542
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
#!includedir /etc/mysql/conf.d/ |
Je ne comprends pas ce qui ne fonctionne pas?
L'idée étant de contextualiser mysql.
Les VMs livrées sont très petites et tous se passe dans le volume data.
Quelqu'un sait-il ce qu'il me manque?
Cordialement,
Vandman