problema mysql

Scrivi qui tutto quello che non riguarda Sabayon Linux

Moderator: Moderators

problema mysql

Postby zakunin » Tue Aug 21, 2012 21:57

Buonasera a tutti.

Sto cercando di installare un server LAMP su s9 ma non riesco a far partire il server mysql:

l'ho installato così:
Code: Select all
equo installl dev-db/mysql

ho quindi lanciato la configurazione
Code: Select all
equo config dev-db/mysql

e ottengo un errore dopo aver ribattuto la pswd:
Code: Select all
# equo config dev-db/mysql
>>    # (1/1) dev-db/mysql-5.5.22-r1 | Installato da: sabayon-weekly
>>    ## Configurazione pacchetto: dev-db/mysql-5.5.22-r1
>>    ## SPM: fase di configurazione
 * Please provide a password for the mysql 'root' user now, in the
 * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
 * Avoid ["'\_%] characters in the password
    >
 * Retype the password
    >
 * ERROR: dev-db/mysql-5.5.22-r1 failed (config phase):
 *   Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND /tmp/tmpXQxtUQ/portage/dev-db/mysql-5.5.22-r1/temp/mysql_install_db.log
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called pkg_config
 *   environment, line 3441:  Called mysql-v2_pkg_config
 *   environment, line 3095:  Called die
 * The specific snippet of code:
 *           die "Failed to run mysql_install_db. Please review ${EPREFIX}/var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log";
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.5.22-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.5.22-r1'`.
 * The complete build log is located at '/tmp/tmpXQxtUQ/portage/dev-db/mysql-5.5.22-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/tmpXQxtUQ/portage/dev-db/mysql-5.5.22-r1/temp/environment'.
 * Working directory: '/tmp/tmpXQxtUQ/portage/dev-db/mysql-5.5.22-r1/temp'
 * S: '/tmp/tmpXQxtUQ/portage/dev-db/mysql-5.5.22-r1/work/mysql-5.5.22'
>>    ## E' avvenuto un errore. Azione abortita.
>>  @@ Ricerca file di configurazione completata.

e così mysql non parte:
Code: Select all
# /etc/init.d/mysql start
 * Starting mysql ...
 * MySQL datadir `/var/lib/mysql' is empty or invalid
 * Please check your config file `/etc/mysql/my.cnf'
 * ERROR: mysql failed to start

un suggerimento?

grazie!
User avatar
zakunin
Young Hen
 
Posts: 32
Joined: Tue May 01, 2012 9:49

Re: problema mysql

Postby lxnay » Tue Aug 21, 2012 22:34

Guardare in /var/log/mysql/mysqld.err è la prima cosa che dovresti fare... Uso mysql su praticamente tutte le macchine, non ho mai incontrato problemi di questo tipo :?:
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3417
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: problema mysql

Postby zakunin » Tue Aug 21, 2012 22:46

lxnay wrote:Guardare in /var/log/mysql/mysqld.err è la prima cosa che dovresti fare... Uso mysql su praticamente tutte le macchine, non ho mai incontrato problemi di questo tipo :?:

mha...mysqld.err con
Code: Select all
sabayon mysql # nano mysql.err

mi risulta essere vuoto... :oops:

Mi sto documentando ma ho il sospetto di aver omesso/sbagliato qualche cosa che la stanchezza mi impedisce di inquadrare :mrgreen:
User avatar
zakunin
Young Hen
 
Posts: 32
Joined: Tue May 01, 2012 9:49


Return to Piazzetta

Who is online

Users browsing this forum: No registered users and 0 guests