Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 3 tasks
davidshiz opened this issue Dec 6, 2022 · 1 comment · Fixed by #1160
Assignees
Labels
A-bug Something isn't working prio: high High priority

Comments

@davidshiz
Copy link
Collaborator

davidshiz commented Dec 6, 2022

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment