Pagina 1 di 1

mysql configurazione

Inviato: gio 16 nov 2006, 15:47
da ewix
salve a tutti, ho installato il pacchetto di mysql e provato a seguire diverse guide per la configurazione, però non riesco in nessun modo a far partire il server. l'output è immancabilmente

Codice: Seleziona tutto

root@ewix:/var/lib/mysql# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
061116 15:42:43  mysqld ended


[1]+  Done                    /etc/rc.d/rc.mysqld start
Inoltre c'è una cosa strana: il comando mysql_install_db sembra dare esito positivo eccetto per il seguente warning:

Codice: Seleziona tutto

WARNING: The host 'ewix' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing all prepared tables
Fill help tables
ho anche controllato il file di errore in /var/lib/mysql e il messaggio è

Codice: Seleziona tutto

061116 16:37:09  mysqld started
061116 16:37:09  InnoDB: Started; log sequence number 0 43655
/usr/libexec/mysql/mysqld: File './mysql-bin.000003' not found (Errcode: 13)
061116 16:37:09 [ERROR] Failed to open log (file './mysql-bin.000003', errno 13)
061116 16:37:09 [ERROR] Could not open log file
061116 16:37:09 [ERROR] Can't init tc log
061116 16:37:09 [ERROR] Aborting

061116 16:37:09  InnoDB: Starting shutdown...
061116 16:37:11  InnoDB: Shutdown completed; log sequence number 0 43655
061116 16:37:11 [Note] /usr/libexec/mysql/mysqld: Shutdown complete

061116 16:37:11  mysqld ended

Inviato: gio 16 nov 2006, 17:39
da tgmx
da root:

Codice: Seleziona tutto

su mysql
mysql_install_db
a quel punto avvii il server.

Il file /etc/my.cnf inizialmente non è indispensabile per far partire mysql. successivamente dovrai crearne uno partendo magari da quelli di esempio.

Inviato: mer 22 nov 2006, 9:24
da ewix
in effetti non avevo capito che venisse creato un utente mysql e che dovessi accedere con quello. Solo non riesco ad avere un accesso completo al server.
Se cerco di assegnare una password a root mi viene risposto che ho l'accesso negato. Riesco ad avere il prompt di mysql come utente mysql, ma non riesco a creare altri utenti con CREATE USER perchè mancano i privilegi.
Ho provato con un chmod du /var/lib/mysql ma non ha cambiato nulla.

Inviato: gio 23 nov 2006, 12:54
da linus.bash
Leggi QUI ;)