Hello.


> [EMAIL PROTECTED] scripts]# mysql_install_db --user=mysql

> -bash: mysql_install_db: command not found

> [EMAIL PROTECTED] 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 ..





You should be in the BASEDIR not in the scripts directory. Run:

  ./scripts/mysql_install_db









Mark Sargent <[EMAIL PROTECTED]> wrote:

> 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,

> 

> [EMAIL PROTECTED] scripts]# mysql_install_db --user=mysql

> -bash: mysql_install_db: command not found

> [EMAIL PROTECTED] 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.

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to