Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15
  1. #1

    [mySQL]Parte e si disattiva subito


    Ho installato mysql 3.23 su suSE 9.1. seguendo le istruzioni su feephp, ma quando do il comando di safe_mysqld --user=mysql
    mi restituisce :
    Starting mysqld daemon with databases from /usr/local/mysql_3.23.58/data
    040815 23:53:44 mysqld ended
    Perchè?
    Come lo risolvo? Grazie
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

  2. #2

  3. #3
    040815 23:35:09 mysqld started
    040815 23:35:09 Can't start server: Bind on TCP/IP port: Address already in use
    040815 23:35:09 Do you already have another mysqld server running on port: 3306 ?
    040815 23:35:09 Aborting
    Ho attivo solo il server apache!
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

  4. #4
    hai già dato mysql_install_db?

  5. #5
    mi ice che prima devo fare make e make install, ma questi comandi non partono: non mi riconosce 'install' e mi dice qlcs tipo nn c'è target o qlcs del genere. cmq domani riprovo, ti faccioi sapere.
    Grazie.
    Notte
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

  6. #6
    Originariamente inviato da TRC
    mi ice che prima devo fare make e make install, ma questi comandi non partono: non mi riconosce 'install' e mi dice qlcs tipo nn c'è target o qlcs del genere. cmq domani riprovo, ti faccioi sapere.
    Grazie.
    Notte

    quindi lo stai compilando?
    hai scaricato i sorgenti, giusto?

  7. #7

    riepilogo

    1. Ho scaricato i sorgenti mysql-3.23.58-pc-linux-i686.tar.gz
    (N.B.: Apache 1.3 è già installato e attivo)
    2. Dopo avre decompresso il file da shell do il comando
    ./configure --prefix=/usr/local/mysql_3.23.58;
    3. Mi restituisce
    NOTE: This is a MySQL binary distribution. It's ready to run, you don't
    need to configure it!

    To help you a bit, I am now going to create the needed MySQL databases
    and start the MySQL server for you. If you run into any trouble, please
    consult the MySQL manual, that you can find in the Docs directory.

    Installing all prepared tables
    040816 9:56:08 ./bin/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:
    ./bin/mysqladmin -u root password 'new-password'
    ./bin/mysqladmin -u root -h linux password 'new-password'
    See the manual for more instructions.

    NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
    the ./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 . ; ./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 ./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

    Starting the mysqld server. You can test that it is up and running
    with the command:
    ./bin/mysqladmin version
    linux:/usr/local/mysql_3.23.58 # Starting mysqld daemon with databases from /usr/local/mysql_3.23.58/data
    040816 09:56:08 mysqld ended
    4. E già qui mi sembra ci siano un po' di cose che non vanno. Infatti il log degli errori dà:
    040816 09:56:08 mysqld started
    040816 9:56:08 Can't start server: Bind on TCP/IP port: Address already in use
    040816 9:56:08 Do you already have another mysqld server running on port: 3306 ?
    040816 9:56:08 Aborting

    040816 9:56:08 /usr/local/mysql_3.23.58/bin/mysqld: Shutdown Complete

    040816 09:56:08 mysqld ended
    io non ho fatto nulla da quando ho acceso il computer. Se un altro server mySQL è partito lo ha fatto in automatico.

    Ma se un altro mySQL server è già attivo perchè facendo mysqladmin ping ho
    /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists
    ????

    5. Provo make / make install:
    linux:/usr/local/mysql_3.23.58 # make
    make: *** No targets specified and no makefile found. Stop.
    linux:/usr/local/mysql_3.23.58 # make install
    make: *** No rule to make target `install'. Stop.
    linux:/usr/local/mysql_3.23.58 #
    6. Provo a fare mysql_install_db; mi restituisce
    Didn't find ./bin/mysqld
    You should do a 'make install' before executing this script
    Accidenti, mi ha appena detto che non c'è nulla da configurare, nulla da installare

    Grazie, per la pazienza. Scusa, ma io nn so proprio che fare!
    CIAO
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

  8. #8

    AHHHHHH!!! Anche php!!!!!!!!!!!!!!!!!!!!!!

    Nell'attesa ho provato a compilare php:

    linux:/usr/local/src/php-4.3.8 # ./configure --prefix=/usr/local/php_x.y.z \
    > --with-apxs=/usr/local/apache/bin/apxs \
    > --with-mysql \
    > --with-config-file-path=/usr/local/apache/conf
    loading cache ./config.cache
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking whether gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for re2c... exit 0;
    checking for ranlib... ranlib
    checking whether ln -s works... yes
    checking for mawk... no
    checking for gawk... gawk
    checking for bison... no
    checking for byacc... no
    configure: warning: You will need bison if you want to regenerate the PHP parsers.
    checking for flex... lex
    checking for yywrap in -ll... no
    checking lex output file root... ./configure: line 2425: lex: command not found
    configure: error: cannot find output from lex; giving up
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

  9. #9
    ma che distro hai? cmq da quanto dice il testo di mysql è una distribuzione binaria, quindi nn la devi compilare...

    per il php invece manca qualche pacchetto...che distro hai?

  10. #10
    suSE 9.1 con KDE.
    In definitiva che devo fare con mysql e php?
    -... Jack: quando ti viene in mente un'idea, scrivila e basta!-
    (Alec Baldwin "Caccia a Ottobre Rosso)

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.