Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
621c7db2
Commit
621c7db2
authored
Aug 09, 2000
by
tim@localhost.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use @HOSTNAME@ instead of hardcoded /bin/hostname.
parent
c6c775c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+2
-4
scripts/safe_mysqld-watch.sh
scripts/safe_mysqld-watch.sh
+5
-4
scripts/safe_mysqld.sh
scripts/safe_mysqld.sh
+3
-3
No files found.
scripts/mysql_install_db.sh
View file @
621c7db2
...
@@ -77,9 +77,7 @@ then
...
@@ -77,9 +77,7 @@ then
fi
fi
fi
fi
# On IRIX hostname is in /usr/bsd so add this to the path
hostname
=
`
@HOSTNAME@
`
# Install this too in the user table
PATH
=
$PATH
:/usr/bsd
hostname
=
`
hostname
`
# Install this too in the user table
# Check if hostname is valid
# Check if hostname is valid
if
test
"
$IN_RPM
"
-eq
0
-a
$force
-eq
0
if
test
"
$IN_RPM
"
-eq
0
-a
$force
-eq
0
...
@@ -287,7 +285,7 @@ then
...
@@ -287,7 +285,7 @@ then
echo
"PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
echo
"PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
echo
"This is done with:"
echo
"This is done with:"
echo
"
$bindir
/mysqladmin -u root -p password 'new-password'"
echo
"
$bindir
/mysqladmin -u root -p password 'new-password'"
echo
"
$bindir
/mysqladmin -u root -h
`
hostname
`
-p password 'new-password'"
echo
"
$bindir
/mysqladmin -u root -h
$hostname
-p password 'new-password'"
echo
"See the manual for more instructions."
echo
"See the manual for more instructions."
#
#
# Print message about upgrading unless we have created a new db table.
# Print message about upgrading unless we have created a new db table.
...
...
scripts/safe_mysqld-watch.sh
View file @
621c7db2
...
@@ -30,10 +30,11 @@ else
...
@@ -30,10 +30,11 @@ else
ledir
=
/usr/local/mysql/libexec
ledir
=
/usr/local/mysql/libexec
fi
fi
pidfile
=
$DATADIR
/
`
/bin/hostname
`
.pid
hostname
=
`
@HOSTNAME@
`
log
=
$DATADIR
/
`
/bin/hostname
`
.log
pidfile
=
$DATADIR
/
$hostname
.pid
err
=
$DATADIR
/
`
/bin/hostname
`
.err
log
=
$DATADIR
/
$hostname
.log
lockfile
=
$DATADIR
/
`
/bin/hostname
`
.lock
err
=
$DATADIR
/
$hostname
.err
lockfile
=
$DATADIR
/
$hostname
.lock
#
#
# If there exists an old pid file, check if the demon is already running
# If there exists an old pid file, check if the demon is already running
...
...
scripts/safe_mysqld.sh
View file @
621c7db2
...
@@ -56,11 +56,11 @@ else
...
@@ -56,11 +56,11 @@ else
ledir
=
@libexecdir@
ledir
=
@libexecdir@
fi
fi
pid_file
=
$DATADIR
/
`
/bin/hostname
`
.pid
pid_file
=
$DATADIR
/
`
@HOSTNAME@
`
.pid
MYSQL_UNIX_PORT
=
@MYSQL_UNIX_ADDR@
MYSQL_UNIX_PORT
=
@MYSQL_UNIX_ADDR@
MYSQL_TCP_PORT
=
@MYSQL_TCP_PORT@
MYSQL_TCP_PORT
=
@MYSQL_TCP_PORT@
log
=
$DATADIR
/
`
/bin/hostname
`
.log
log
=
$DATADIR
/
`
@HOSTNAME@
`
.log
err_log
=
$DATADIR
/
`
/bin/hostname
`
.err
err_log
=
$DATADIR
/
`
@HOSTNAME@
`
.err
user
=
@MYSQLD_USER@
user
=
@MYSQLD_USER@
# Get first arguments from the my.cfg file, groups [mysqld] and [safe_mysqld]
# Get first arguments from the my.cfg file, groups [mysqld] and [safe_mysqld]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment