]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- insert FQDN into user table, mysqld matches hosts in FQDN form during
authormis <mis@pld-linux.org>
Thu, 17 Aug 2000 10:06:24 +0000 (10:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  connection

Changed files:
    mysql.init -> 1.14

mysql.init

index 09d96858595f2ec860f7881e53a25cc49781cf36..c3df1f9d6351203c2744aee02ff3ab6d3a82582f 100644 (file)
@@ -119,7 +119,9 @@ case "$1" in
        show "Creating privilege mysql tables"
        busy
        TMP=/tmp TMPDIR=/tmp 
-       hostname=`hostname | tr -d '[:space:]'` # Install this too in the user table
+       
+       # Install this too in the user table
+       hostname=`hostname --fqdn | tr -d '[:space:]'`
                
        # Check if hostname is valid
        if [ -z "$hostname" ]; then
@@ -257,6 +259,7 @@ END_OF_DATA
 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL USERS!"
 This is done with:
 /usr/bin/mysqladmin -u mysql password 'password'
+/usr/bin/mysqladmin -h $hostname -u mysql password 'password'
 /usr/bin/mysqladmin -u mysql_logrotate password 'password'
 NOTE: mysql_logrotate password should be placed to /etc/mysqld.conf in mysqladmin section
 See the manual for more instructions.
This page took 0.038237 seconds and 4 git commands to generate.