I’m running SUSE 10.3, and installed mysql from YaST. I started the
mysql daemon at the command line as root. It created the mysql database
and said to issue a couple of commands to set the root password. No
magic there - same as it’s done for the last hald dozen versions of SUSE
that I’ve used. Except the 2nd line didn’t work. I got the following
error:
koala:/var/lib # /usr/bin/mysqladmin -u root -h koala.mmc password *****
/usr/bin/mysqladmin: connect to server at ‘koala.mmc’ failed
error: ‘Host ‘koala.mmc’ is not allowed to connect to this MySQL server’
It never used to do that. The full output is below.
koala:/var/lib # rcmysql start
Creating MySQL privilege database…
Installing MySQL system tables…
OK
Filling help tables…
OK
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h koala.mmc password ‘new-password’
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Updating MySQL privilege database…
Looking for ‘mysql’ in: /usr/bin/mysql
Looking for ‘mysqlcheck’ in: /usr/bin/mysqlcheck
Running ‘mysqlcheck’…
mysql.columns_priv OK
mysql.db OK
mysql.func OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.proc OK
mysql.procs_priv OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Running ‘mysql_fix_privilege_tables’…
OK
Starting service MySQL done
koala:/var/lib #
koala:/var/lib # /usr/bin/mysqladmin -u root password *****
koala:/var/lib # /usr/bin/mysqladmin -u root -h koala.mmc password *****
/usr/bin/mysqladmin: connect to server at ‘koala.mmc’ failed
error: ‘Host ‘koala.mmc’ is not allowed to connect to this MySQL server’
In earlier versions, starting mysql for the first time didn’t print out
the list of tables. I presume that’s the output from mysqlcheck. I
don’t recall it running the mysql_fix_privilege_tables script either.
I’m wondering if that script is what caused the 2nd command to fail, by
setting some privilege levels in the database.
I’m not sure if that will be problematic or not later, but it seems odd
that I can’t connect to mysql specifying the host, whereas I could in
earlier versions. Is this now the expected behavior, and will it likely
cause problems?
Thanks…
…Kevin
Kevin Miller
http://www.alaska.net/~atftb
Juneau, Alaska
Registered Linux User No: 307357, http://counter.li.org