|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
./mysql_install_db: line 86: my_print_defaults: command not found
From: Mark Sargent (powderkeg
snow.email.ne.jp)
Date: Fri Mar 11 2005 - 21:18:08 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi All,
after experiencing trouble with the rpm install on Fedora3, I went with
the tar install. All went well, until I got to this part of the install
manual,
After you complete the procedure and have the server running, you should
assign passwords to the accounts created by *mysql_install_db*.
Instructions for doing so are given in Section 2.9.3, “Securing the
Initial MySQL Accounts”
<http://dev.mysql.com/doc/mysql/en/default-privileges.html>.
In the examples shown here, the server runs under the user ID of the
|mysql| login account. This assumes that such an account exists. Either
create the account if it does not exist, or substitute the name of a
different existing login account that you plan to use for running the
server.
1.
Change location into the top-level directory of your MySQL
installation, represented here by /|BASEDIR|/:
shell> cd /|BASEDIR|/
/|BASEDIR|/ is likely to be something like |/usr/local/mysql| or
|/usr/local|. The following steps assume that you are located in
this directory.
2.
If necessary, run the *mysql_install_db* program to set up the
initial MySQL grant tables containing the privileges that
determine how users are allowed to connect to the server. You'll
need to do this if you used a distribution type that doesn't run
the program for you.
Typically, *mysql_install_db* needs to be run only the first time
you install MySQL, so you can skip this step if you are upgrading
an existing installation, However, *mysql_install_db* does not
overwrite any existing privilege tables, so it should be safe to
run in any circumstances.
To initialize the grant tables, use one of the following commands,
depending on whether *mysql_install_db* is located in the |bin| or
|scripts| directory:
shell> bin/mysql_install_db --user=mysql
shell> scripts/mysql_install_db --user=mysql
Below is what I did,
[root
localhost scripts]# mysql_install_db --user=mysql
-bash: mysql_install_db: command not found
[root
localhost scripts]# ./mysql_install_db --user=mysql
./mysql_install_db: line 86: my_print_defaults: command not found
Could not find help file 'fill_help_tables.sql' in ./support-files or
inside ..
I guess I'm missing something quite fundamental, yes..? Just can't think
what. Anyone see the obvious.? Cheers.
Mark Sargent.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]