File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
64
64
mysql_install_db --datadir=" $DATADIR " --rpm --basedir=/usr/local/mysql
65
65
echo ' Database initialized'
66
66
67
- " $@ " --skip-networking --basedir=/usr/local/mysql &
67
+ " $@ " --skip-networking --basedir=/usr/local/mysql --socket=/var/run/mysqld/mysqld.sock &
68
68
pid=" $! "
69
69
70
- mysql=( mysql --protocol=socket -uroot -hlocalhost)
70
+ mysql=( mysql --protocol=socket -uroot -hlocalhost --socket=/var/run/mysqld/mysqld.sock )
71
71
72
72
for i in {30..0}; do
73
73
if echo ' SELECT 1' | " ${mysql[@]} " & > /dev/null; then
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
64
64
mysql_install_db --datadir=" $DATADIR " --rpm --keep-my-cnf
65
65
echo ' Database initialized'
66
66
67
- " $@ " --skip-networking &
67
+ " $@ " --skip-networking --socket=/var/run/mysqld/mysqld.sock &
68
68
pid=" $! "
69
69
70
- mysql=( mysql --protocol=socket -uroot -hlocalhost)
70
+ mysql=( mysql --protocol=socket -uroot -hlocalhost --socket=/var/run/mysqld/mysqld.sock )
71
71
72
72
for i in {30..0}; do
73
73
if echo ' SELECT 1' | " ${mysql[@]} " & > /dev/null; then
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
64
64
" $@ " --initialize-insecure
65
65
echo ' Database initialized'
66
66
67
- " $@ " --skip-networking &
67
+ " $@ " --skip-networking --socket=/var/run/mysqld/mysqld.sock &
68
68
pid=" $! "
69
69
70
- mysql=( mysql --protocol=socket -uroot -hlocalhost)
70
+ mysql=( mysql --protocol=socket -uroot -hlocalhost --socket=/var/run/mysqld/mysqld.sock )
71
71
72
72
for i in {30..0}; do
73
73
if echo ' SELECT 1' | " ${mysql[@]} " & > /dev/null; then
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
64
64
" $@ " --initialize-insecure
65
65
echo ' Database initialized'
66
66
67
- " $@ " --skip-networking &
67
+ " $@ " --skip-networking --socket=/var/run/mysqld/mysqld.sock &
68
68
pid=" $! "
69
69
70
- mysql=( mysql --protocol=socket -uroot -hlocalhost)
70
+ mysql=( mysql --protocol=socket -uroot -hlocalhost --socket=/var/run/mysqld/mysqld.sock )
71
71
72
72
for i in {30..0}; do
73
73
if echo ' SELECT 1' | " ${mysql[@]} " & > /dev/null; then
You can’t perform that action at this time.
0 commit comments