Freesco, NND, CDN, EOS
http://forum.freesco.pl/

problem z uruchomieniem mysql
http://forum.freesco.pl/viewtopic.php?f=22&t=8378
Strona 1 z 1

Autor:  marcin w [ niedziela, 31 lipca 2005, 17:09 ]
Tytuł:  problem z uruchomieniem mysql

Witam.
Mam problem z uruchomieniem mysql na najnowszym nnd (z lipca 2005).
Instaluje poprzez pacman -S mysql, potem /etc/rc.d/mysqld start.

bez problemu startuje, wykonuje następnie

/usr/bin/mysqladmin -u root password haslo1

a potem

/usr/bin/mysqladmin -u root -h router_nnd password haslo2

i po tym zwraca mi komunikat:

Cytuj:
/usr/bin/mysqladmin: connect to server at 'router_nnd' failed
error: 'Unknown MySQL Server Host 'router_nnd' (1)'
Check that mysqld is running on router_nnd and that the port is 3306.
You can check this by doing 'telnet router_nnd 3306'


nazwa serwera to standardoiwa z instalacji, czyli router_nnd

próbowałem już odinstalowywać mysql (usuwając również /var/lib/mysql) i ponownie instalować, ale ten sam rezultat.

Proszę o pomoc i wskazówki gdzie błąd poprełniam, bo już nie mam koncepji na rozwiązanie tego problemu.

Autor:  Maciek [ poniedziałek, 1 sierpnia 2005, 00:50 ]
Tytuł: 

Możesz spokojnie używac mysql, ten drugi błąd nie będzie miał wpływu.
BTW sugeruję zmianę nazwy hosta na jakąs jednowyrazową, ten "router_nnd" jest powodem problemów. Już kiedyś zauważyłem, że burzy się na to squid. Teraz wygląda że i mysql tego nie lubi. Chodzi chyba o "_".

Autor:  Koriolan [ poniedziałek, 1 sierpnia 2005, 12:03 ]
Tytuł: 

Może ma problemy z rozwiązaniem adresy routen_nnd.
Zrób ping router_nnd i sprawdź, a do mysql wejdź bez router_nnd. Spróbuj też localhost (ping i wejść do mysql).

Autor:  marcin w [ wtorek, 2 sierpnia 2005, 18:08 ]
Tytuł: 

Witam.

Zamiast router_nnd wklepałem localhost i ruszyło bez problemu.

Autor:  Jurzikowianka [ czwartek, 22 marca 2007, 20:45 ]
Tytuł: 

Witam serdecznei!!
Czy mógłby mi ktos pomóc uruchomic mysql ??

kilka razy juz odinstalowałem i ponownie instalowałem wg różnych opisów na forum ,ale nic nie pomaga zawsze to samo... ;( bardzo prosze o sugestie i ewentualną pomoc!!
: [/] [] ()
[root@router etc]# pacman -S mysql

Cele: mysql-4.0.20-2nnd

Całkowita wielkość pakietu:   3,2 MB

Rozpocząć aktualizację? [T/n] t

sprawdzam integralności pakietów... zrobione.
ładuję dane o pakiecie...zrobione.
sprawdzam możliwość konfliktów... zrobione.
instaluję mysql... zrobione.
[root@router etc]# /etc/rc.d/mysqld start
WARNING: The host 'router' 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 !
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
070322 19:29:43  /usr/sbin/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 !
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 router password 'new-password'
See the manual for more instructions.

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 https://order.mysql.com

NND: Starting MySQL                                                                                     [Wykonane]
[root@router etc]# /usr/bin/mysqladmin -u root password '1234'
[root@router etc]# /usr/bin/mysqladmin -u root -h router password '1234'
/usr/bin/mysqladmin: connect to server at 'router' failed
error: 'Unknown MySQL Server Host 'router' (1)'
Check that mysqld is running on router and that the port is 3306.
You can check this by doing 'telnet router 3306'



dzieki serdeczne i sorry za klopot !! :)

pozdrowionka!!

Autor:  Jurzikowianka [ piątek, 23 marca 2007, 14:53 ]
Tytuł: 

Witam !

znalazłem błąd w tym moim uruchamianiu mysql, ale nei wiem jak temu zaradzić i co mam zmienić!! jęzeli ktoś mógłby mi w tym pomóc to bardzo proszę!! na samym początku jak uruchamiam pierwszy raz mysql to wyrzuca cos takiego
: [/] [] ()
WARNING: The host 'router' 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 !

Tylko co mam źle i jak to zmienić to już nie wiem ... ;(
bardzo prosze o pomoc!!!

pozdrowionka

Autor:  Jurzikowianka [ niedziela, 25 marca 2007, 14:30 ]
Tytuł: 

Jeżeli mój problem jest nie do rozwiazania to powiedzcie mi to i dam se poprostu spokój, ale z natury sie łatwo nei poddaje i tak bede jeszcze próbował... :)

dzieki za pomoc
pozdrowionka

Autor:  JakubC [ niedziela, 25 marca 2007, 14:43 ]
Tytuł: 

Nie masz wpisu dla localhost w /etc/hosts ?

Autor:  Jurzikowianka [ niedziela, 25 marca 2007, 14:52 ]
Tytuł: 

mój /etc/hosts
zaczyna sie tak:
: [/] [] ()
# /etc/hosts

# Nie usuwaj następnej linii. Wiele programów
# wymaga takiego wpisu do poprawnej pracy.

#ipv6-localhost ipv6-loopback
::1     router.qnet     router
127.0.0.1       localhost.localdomain   localhost
192.168.1.1
192.168.1.2     Master
192.168.1.3     Danny
itd...

czy powinno byc jakos inaczej ??

dzieki serdeczne!

Autor:  JakubC [ niedziela, 25 marca 2007, 15:01 ]
Tytuł: 

Jurzikowianka pisze:
mój /etc/hosts
zaczyna sie tak:
# /etc/hosts

# Nie usuwaj następnej linii. Wiele programów
# wymaga takiego wpisu do poprawnej pracy.

#ipv6-localhost ipv6-loopback
::1 router.qnet router
127.0.0.1 localhost.localdomain localhost
192.168.1.1
192.168.1.2 Master
192.168.1.3 Danny
itd...


A to co?

IMO powinnaś mieć tak
Cytuj:
# /etc/hosts

# Nie usuwaj następnej linii. Wiele programów
# wymaga takiego wpisu do poprawnej pracy.

#ipv6-localhost ipv6-loopback
127.0.0.1 localhost.localdomain localhost
192.168.1.1 router.qnet router
127.0.0.1 router

192.168.1.2 Master
192.168.1.3 Danny
itd...

Autor:  Jurzikowianka [ niedziela, 25 marca 2007, 15:27 ]
Tytuł: 

niestety nie wiem dlaczego miałem taki wpis, ale poprawiłem, zrobiłem restart serwera i próbuje od nowa zainstalowac mysql ale ciągle coś nei idzie chociaz taraz jest już cos innego :
: [/] [] ()
[root@router jurzikowianka]# pacman -S mysql

Cele: mysql-4.0.20-2nnd

Całkowita wielkość pakietu:   3,2 MB

Rozpocząć aktualizację? [T/n] t

sprawdzam integralności pakietów... zrobione.
ładuję dane o pakiecie...zrobione.
sprawdzam możliwość konfliktów... zrobione.
instaluję mysql... zrobione.
[root@router jurzikowianka]# /etc/rc.d/mysqld start
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
070325 15:20:14  /usr/sbin/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 !
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 router password 'new-password'
See the manual for more instructions.

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 https://order.mysql.com

NND: Starting MySQL                                                  [Wykonane]
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root password 'xxxx'
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root -h router password 'xxxx'
/usr/bin/mysqladmin: connect to server at 'router' failed
error: 'Host 'router.qnet' is not allowed to connect to this MySQL server'
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root -h router.qnet password 'xxxx'
/usr/bin/mysqladmin: connect to server at 'router.qnet' failed
error: 'Host 'router.qnet' is not allowed to connect to this MySQL server'
[root@router jurzikowianka]#

co jeszcze robie źle ?

serdeczne dzieki

Autor:  JakubC [ niedziela, 25 marca 2007, 16:25 ]
Tytuł: 

Wszystko jest dobrze, tylko...

Cytuj:
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root password 'xxxx'
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root -h router password 'xxxx'


Nie -h router tylko zostaw -h localhost

To wszystko. Php myadmin oraz inne aplikacje korzystające z mysql będą działać :)

Autor:  Jurzikowianka [ niedziela, 25 marca 2007, 18:55 ]
Tytuł: 

No tak niby OK ale w phpMyAdmin mam komunikat:
: [/] [] ()
#1045 - Access denied for user: 'root@localhost' (Using password: NO)

i teraz nei wiem czy to wina mysql czy złego configa phpMyAdmin
ale jak dam w konsoli
: [/] [] ()
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root -h localhost password 'xxxx'


to otrzymuje taki komunikat
: [/] [] ()
[root@router jurzikowianka]# /usr/bin/mysqladmin -u root -h localhost password 'xxxx'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'

wot intieriesna... ;-)

Autor:  JakubC [ niedziela, 25 marca 2007, 19:43 ]
Tytuł: 

Jurzikowianka pisze:
No tak niby OK ale w phpMyAdmin mam komunikat:
: [/] [] ()
#1045 - Access denied for user: 'root@localhost' (Using password: NO)

i teraz nei wiem czy to wina mysql czy złego configa phpMyAdmin

Nie tyle złego, co nieskonfigurowanego phpmyadmina.

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/