Reputation: 31
I configured 3 drives on my machine: 1 for data files, 1 for transaction logs files, and 1 for temporary files.
I would like to initialize MariaDB at its first run straight after yum installation. Here are my steps:
[mysqld]
aria-log-dir-path=/tempdb/mysql/
datadir=/data/mysql/
tmpdir=/tempdb/mysql/
innodb_data_home_dir=/data/mysql/
innodb_log_group_home_dir=/tlogs/mysql/
innodb_undo_directory=/tlogs/mysql/
aria-log-dir-path=/tempdb/mysql/
sudo yum -y update
sudo tee /etc/yum.repos.d/MariaDB.repo<<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
sudo yum makecache fast
sudo yum -y install MariaDB-server MariaDB-client
sudo systemctl start mariadb
I get the following exception
Can't start server : Bind on unix socket: No such file or directory
Can anyone shed some light on what I'm doing wrong? is this the right procedure to achieve my goal?
Thx Gianluca
Upvotes: 0
Views: 609
Reputation: 31
need to set the socket parameter
[client]
socket=/tmp/mysql.sock
...
[mysqld]
...
socket=/tmp/mysql.sock
...
Upvotes: 1