Visualizzazione dei risultati da 1 a 2 su 2

Discussione: mysql su fedora core 1

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2003
    Messaggi
    51

    mysql su fedora core 1

    ho notato che sulla mia distro "fedora Core 1" per l'esattezza è installato mysql.
    dal momento che mi serve un database ho pensato di usare quello, ma non so come lanciarlo.
    se da console scrivo:

    [root@server tochiro]# mysql

    questo è il risultato:
    ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    ho pensato che forse il fatto che fosse presente non significasse necessariamente che fosse installato allora ho visto tutto quello che iniziava con mysql:

    [root@server tochiro]# mysql
    mysql mysqldumpslow
    mysqlaccess mysql_find_rows
    mysqladmin mysql_fix_privilege_tables
    mysqlbinlog mysqlhotcopy
    mysqlbug mysqlimport
    mysqlcheck mysql_install_db
    mysql_config mysql_setpermission
    mysql_convert_table_format mysqlshow
    mysqld_multi mysqltest
    mysqldump mysql_zap

    ed ho lanciato:
    [root@server tochiro]# mysql_install_db

    ecco loutput:

    Installing all prepared tables
    040513 13:24:23 /usr/libexec/mysqld: Shutdown Complete


    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 !
    This is done with:
    /usr/bin/mysqladmin -u root password 'new-password'
    /usr/bin/mysqladmin -u root -h server 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/safe_mysqld &

    You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
    cd sql-bench ; 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

    se adesso rilancio:
    [root@server tochiro]# mysql

    il messagio di errore è il seguente:

    ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

    cosa sbaglio?

  2. #2

    Re: mysql su fedora core 1

    Originariamente inviato da Tochiro
    [...]
    cosa sbaglio?
    Prima di connettersi, il demone deve essere in ascolto:

    codice:
    # service mysql start
    (o mysql o mysqld o analoghi: vedi ls -lh /etc/init.d/mysql*)

    se conti di usare sempre mysql, aggiungi:

    codice:
    chkconfig --level 345 mysql on
    Inutile dire che, doc alla mano, dovrai configurare adeguatamente il tutto prima dell'uso.
    "Qualsiasi esperto ha paura di combattere usando la katana vera. Anch'io. Ma non ignoro la mia paura, riesco ad accettarla, e a metterla da parte accanto a me".

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.