Resultados da Enquete: Erro de instalação do MYSQL

Votantes
2. Você não pode votar nesta enquete
  • ERRO DE MYSQL

    1 50,00%
  • mysql

    1 50,00%
+ Responder ao Tópico



  1. #1

    Padrão MYSQL - erro na instalação

    MYSQL - erro na instalação

    Olá pessoal

    Baixei e instalei o MYSQL com os seguintes comandos:
    slackpkg install mysql

    Quando dei um mysql_install_db, ele me reotrna a seguinte mensage:


    mysql@brutus:/usr/bin$ mysql_install_db
    Installing all prepared tables
    Fill help tables

    To start mysqld at boot time you have to copy support-files/mysql.server
    to the right place for your system

    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 brutus password 'new-password'
    See the manual for more instructions.

    NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
    the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
    able to use the new GRANT command!

    You can start the MySQL daemon with:
    cd /usr ; /usr/bin/mysqld_safe &

    You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
    cd sql-bench ; perl run-all-tests

    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 https://order.mysql.com



    Alguém poderia me ajudar?

  2. #2

    Padrão MYSQL - erro na instalação

    onde ta o erro? eu nao vejo nenhum.

  3. #3

  4. #4

    Padrão MYSQL - erro na instalação

    OK, ...

    Estou seguindo esses passos:

    # su mysql
    $ mysql_install_db

    Preparing db table
    Preparing host table
    Preparing user table
    Praparing func table
    Praparing tables_priv table
    Praparing columns_priv table
    Installing all prepared tables
    040625 12:23:26 /usr/libexec/mysqld: Shutdown Complete . . .

    $ exit
    # mysqld_safe --user=mysql&
    # mysql_secure_installation

    só que quando do o comando "mysql_safe --user=mysql&

    Ele me retorna o seguinte: #bash: mysql_safe: command not found

    Por que disso?


    Agradeço desde já

  5. #5

    Padrão MYSQL - erro na instalação

    Depois fiz o seguinte:

    #mysqladmin -u root password minha_senha

    e me apareceu esse erro. Pelo que entendi sobre o erro, o user mysql ñ tem senha é isso?

    Alguém pode me ajudar??

    Esse é o erro:
    [b]
    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'[b]

  6. #6

    Padrão MYSQL - erro na instalação

    vc criou o usuario e o grupo?

    - Verifique se o usuario mysql esta criado.
    # cat /etc/passwd | grep mysql
    Vai te dar um retorno como esse:
    mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash
    Senao vamos criar um (grupo tambem).
    # groupadd mysql
    # usr/sbin/useradd -g mysql mysql

  7. #7

    Padrão MYSQL - erro na instalação

    Quando eu do o ...

    # cat /etc/passwd | grep mysql

    aparece o seguinte:

    mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash

    está certinho neh? Tem outra coisa, que possa estar errado?

  8. #8

    Padrão MYSQL - erro na instalação

    Citação Postado originalmente por tomelin
    OK, ...
    só que quando do o comando "mysql_safe --user=mysql&

    Ele me retorna o seguinte: #bash: mysql_safe: command not found

    Por que disso?
    pq eh mysqld_safe e nao mysql_safe