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

    [mysql] errore di configurazione

    ragazzi quando mi collego con WinSCP e vado in /var/log/ del mio server vedo che c'è il log di mysql che alla fine del nome del file credo che presenti il carattere di new line (foto in allegato)

    come posso risolvere quest'errore?
    Immagini allegate Immagini allegate

  2. #2
    inoltre quando riavvio mysql


    ssh->/etc/rc.d/init.d/mysqld restart

    Stopping MySQL: [ OK ]
    Initializing MySQL database: 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 ip-xxnet 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 http://shop.mysql.com
    [ OK ]
    chown: cannot access `/var/lib/mysql\r': No such file or directory
    chown: cannot access `/var/lib/mysql\r': No such file or directory
    chmod: cannot access `/var/lib/mysql\r': No such file or directory
    Starting MySQL: [ OK ]
    dalle ultime chiamate chown alla fine c'è quel carattere \r che sarebbe il pulsante return

  3. #3
    Utente di HTML.it L'avatar di luca200
    Registrato dal
    Apr 2002
    Messaggi
    4,120
    tiro molto a indovinare, ma potrebbe essere che tu abbia caricato su sistema linux un file di configurazione scritto su windows e che il problema derivi da quello.

    Su Linux il carattere di a capo è solo \n, su windows invece viene messo \r\n, per cui può essere che mysql veda quel '\r' in più come un carattere che fa parte del nome file.
    La soluzione può essere usare un editor che sia in grado di lavorare in 'modalità unix', quindi con il solo \n come newline, oppure usare un programma di trasferimento file che faccia la conversione in automatico (in genere i client ftp dovrebbero farlo, se non lavorano in modalità binaria, ma tu usi WinSCP e quindi può essere che ci sia qualche parametro da sistemare da qualche parte)

  4. #4
    penso che hai perfettamente ragione, modificato in windows caricato su linux.
    posso fare un veloce script php che sostituisce tutti i caratteri \r con \n e lo carico nuovamente
    ( faccio prima in php )


    complimenti ancora per la tua esperienza sull'argomento

  5. #5
    luca riappo la discussione tanto l'argometno è quello. mysql ogni tanto prende e si chiude ed io l'unica cosa che posso fare è collegarmi con ssh e riavviarlo.. non riesco a capire perchè si chiude, apparantemtne non c'è una logica, comunque principalemente si chiude ad una certa ora della giornata ( anche se si può chiudere sempre )

    ho visto nei log e gli errori sono principalemtne:

    [ERROR] Error in accept: Too many open files in system
    [ERROR] mysqld: Got error 12 from select
    [Warning] Could not increase number of max_open_files to more than 65535 (request: 82030)

    (il numero di request è sempre quello non so cosa rappresenta)

    la versione è 5.0.27
    potrei provare a fare qualcosa?

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.