Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    Hem..mysql :dhò: :dhò:

    inizio col scusarmi se ho postato un argomento già trattato tantissime volte!...ma proprio sto mysql non vuole andare!!!

    linux:/home/ale # rcmysql start
    Creating MySQL privilege database and starting MySQL...
    hostname: Unknown host
    Neither host '' and 'localhost' could not be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    failed
    linux:/home/ale #



    ho letto (nn trovando + la guida su html) ke devo creare l'utente mysql e poi assegnarli delle cartelle...ma come?!..

    magari se avete il link della guida cerco di cavarmela da solo..
    [ SimplyMepis 8 ]Copyleft
    www.mepisitalia.org IL SITO ITALIANO UFFICIALE DI MEPIS
    www.salentomovida.it LA MOVIDA DEL SALENTO HA UN NUOVO PUNTO D'INCONTRO SUL WEB
    [ SUD SOUND SYSTEM MINA FUECU INTRA ALLU SALENTU ]

  2. #2
    ho scritto questo piccolo ,sicuramente ancora incompleto, tuttorial per avviare mysql.
    Se ti puo' essere di aiuto ...
    codice:
    				Tutorial testato su Linux Slackware 10	(scritto da AnDr3a_NeT)	...
    
    Con MySQL già installato eseguire i seguenti comandi da shell per utilizzare il db.
     	
    	**NOTA_0 => Script per poter avviare MySQL(da utilizzare anche x farlo partire boot del pc in automatico):
    	/usr/share/mysql/mysql.server  (argomenti : start | stop | restart )
    	
    	**NOTA_1 => Cambio i permessi(gruppo e utente) per poter eseguire MySQL (l'opzione -R cambia,in modo ricorsivo,il gruppo della cartella e dei files in essa contenuti)
    
    
    root@linuxbox:~# mysql_install_db          
    Preparing db table
    Preparing host table
    Preparing user table
    Preparing func table
    Preparing tables_priv table
    Preparing columns_priv table
    Installing all prepared tables
    040628 15:01:49  /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
    (testato sotto Slackware 10)
    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 linuxbox password 'new-password'
    See the manual for more instructions.
    
    You can start the MySQL daemon with:
    cd /usr ; /usr/bin/mysqld_safe &                  **NOTA_0
    
    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
    
    
    root@linuxbox:~# cd /var/lib
    
    root@linuxbox:/var/lib# chown -R mysql mysql/    **NOTA_1
    
    root@linuxbox:/var/lib# chgrp -R mysql mysql/    **NOTA_1
    
    root@linuxbox:/var/lib# cd /usr
    
    root@linuxbox:/usr# /usr/bin/mysqld_safe         **NOTA_0
    Starting mysqld daemon with databases from /var/lib/mysql
    Vediamo..sogni che diventano professione...passioni che diventano vita... Free as in Freedom...

  3. #3
    al primo comando...

    linux:/home/ale # mysql_install_db
    hostname: Unknown host
    Neither host '' and 'localhost' could not be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    linux:/home/ale #


    senti..ma dove sta httpd.conf?..l'ho perso! :gren:
    [ SimplyMepis 8 ]Copyleft
    www.mepisitalia.org IL SITO ITALIANO UFFICIALE DI MEPIS
    www.salentomovida.it LA MOVIDA DEL SALENTO HA UN NUOVO PUNTO D'INCONTRO SUL WEB
    [ SUD SOUND SYSTEM MINA FUECU INTRA ALLU SALENTU ]

  4. #4
    Originariamente inviato da alex86
    al primo comando...

    linux:/home/ale # mysql_install_db
    hostname: Unknown host
    Neither host '' and 'localhost' could not be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    linux:/home/ale #


    senti..ma dove sta httpd.conf?..l'ho perso! :gren:
    httpd.conf,almeno in slack,è in /etc/apache/httpd.conf

    Sembra che non hai settato un hostname o che è errato...non so prova a dare hostname localhost e poi riprova

    Vediamo..sogni che diventano professione...passioni che diventano vita... Free as in Freedom...

  5. #5
    si..ma nn trovo nessun hostname sul file!
    [ SimplyMepis 8 ]Copyleft
    www.mepisitalia.org IL SITO ITALIANO UFFICIALE DI MEPIS
    www.salentomovida.it LA MOVIDA DEL SALENTO HA UN NUOVO PUNTO D'INCONTRO SUL WEB
    [ SUD SOUND SYSTEM MINA FUECU INTRA ALLU SALENTU ]

  6. #6
    cmq deve essere quello il problema...perkè ho lanciato apache con apache2 start, mi da esito positivo ma...se apro localhost o 127.0.0.1 dice

    Si è verificato un errore durante il caricamento di http://127.0.0.1/:


    La connessione all'host 127.0.0.1 si è interrotta

    come se nn fosse avviato
    [ SimplyMepis 8 ]Copyleft
    www.mepisitalia.org IL SITO ITALIANO UFFICIALE DI MEPIS
    www.salentomovida.it LA MOVIDA DEL SALENTO HA UN NUOVO PUNTO D'INCONTRO SUL WEB
    [ SUD SOUND SYSTEM MINA FUECU INTRA ALLU SALENTU ]

  7. #7
    Utente di HTML.it L'avatar di gianiaz
    Registrato dal
    May 2001
    Messaggi
    8,027
    httpd.conf non c'entra nulla con l'hostname.

    L'hostname viene assegnato dal comando 'hostname' (man hostname), che comunque scrive il tutto nel file /etc/hostname.
    Inoltre viene inserita una linea anche nel file /etc/hosts.
    Ecco i miei files:
    codice:
    root@dune:/home/gianiaz# cat /etc/hostname 
    dune
    root@dune:/home/gianiaz# cat /etc/hosts    
    127.0.0.1       dune    localhost
    192.168.1.1     dune    localhost

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 © 2025 vBulletin Solutions, Inc. All rights reserved.