Skip to content

bug: ./reinstall.sh automatic installation, the sock file directory is inconsistent with the directory in my.cnf #1075

@davidshiz

Description

@davidshiz

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

the sock file directory in my.cnf which generated by default as follows
socket = /tmp/mysql.sock

[client]
port = 3306
socket          = /tmp/mysql.sock

[mysqld]
port                            = 3306
basedir                         = /stonedb57/install/
character-sets-dir              = /stonedb57/install/share/charsets/
plugin_dir                      = /stonedb57/install/lib/plugin/
tmpdir                          = /stonedb57/install/tmp/
socket                          = /tmp/mysql.sock
datadir                         = /stonedb57/install/data/
pid-file                        = /stonedb57/install/data/mysqld.pid
log-error                       = /stonedb57/install/data/mysqld.log
lc-messages-dir                 = /stonedb57/install/share/
lc_messages                     = en_US

But when using this script ./reinstall.sh for automated installation, the sock file directory is /stonedb57/install//tmp/mysql.sock,the sock file directory is inconsistent with the directory in my.cnf.

as follows

+ echo mysqld_pid::: /stonedb57/install/data/mysqld.pid
mysqld_pid::: /stonedb57/install/data/mysqld.pid
+ wait_for_ready
+ i=0+
+ test 0 -ne/stonedb57/install//bin/mysqld_safe 900 --user=mysql
 --datadir=/stonedb57/install/data/ --socket=/stonedb57/install//tmp/mysql.sock --pid-file=/stonedb57/install/data/mysqld.
+ /stonedb57/install//bin/mysqladmin ping --socket=/stonedb57/install//tmp/mysql.sock
+ kill -0 126609
+ :
+ echo .\c
.+ expr 0 + 1
+ i=1
+ sleep 1
Logging to '/stonedb57/install/data/ub01.err'.
2022-12-06T08:15:56.815017Z mysqld_safe Starting mysqld daemon with databases from /stonedb57/install/data
+ test 1 -ne 900
+ /stonedb57/install//bin/mysqladmin ping --socket=/stonedb57/install//tmp/mysql.sock

Expected behavior

The two directories should be consistent

How To Reproduce

No response

Environment

root@ub01:/stonedb57/install/bin# ./mysqld --version
./mysqld  Ver 5.7.36-StoneDB for Linux on x86_64 (build-)
build information as follow:
        Repository address: https://github.com/stoneatom/stonedb.git:stonedb-5.7-dev
        Branch name: stonedb-5.7-dev
        Last commit ID: e395f89e1
        Last commit time: Date:   Tue Dec 6 01:04:24 2022 +0800
        Build time: Date: Tue Dec  6 16:03:58 CST 2022

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!

Metadata

Metadata

Assignees

Labels

A-bugSomething isn't workingprio: highHigh priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions