(from uhu kezdő levelezőlista)
Itt van az első UHU-Linux 2.1 problémám:
Valami nem OK a mysql-server telepítésével. Ugyanis nem működik!
Új telepítés után megpróbáltam a root jelszó beállítását az alábbi
módon:
root:~# mysqladmin -p password "valami"
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
meg így is:
root:~# /usr/bin/mysqladmin -u root password "valami"
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
(Az mondjuk érdekes, hogy a két változatra kétféle választ adott (password: YES /NO)
Mivel ez egy új telepítés, én nem állítottam be semilyen jelszót.
Megpróbáltam adatbázist létrehozni (ezt persze tudtam, hogy nem megy, de
gondoltam a hibaüzenetből valamit megtudok):
root:~# /usr/bin/mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1062 Duplicate entry 'localhost-' for key 1
080121 9:21:24 [ERROR] Aborting
080121 9:21:24 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script
Akkor a --skip-grant javaslat:
root:~# /usr/sbin/mysqld --skip-grant
080121 9:21:43 [ERROR] Fatal error: Please read "Security" section of the
manual to find out how to run mysqld as root!
080121 9:21:43 [ERROR] Aborting
080121 9:21:43 [Note] /usr/sbin/mysqld: Shutdown complete
msandor
javaslatom: szedd le innen:
http://uhu.linux.hu/dev/msandor/phpmyadmin_2.11.3-1.3 _i386.uhu a
phpmyadmin nevű webes MySQL mahinátort, és első alkalommal jelentkezz be
rootként jelszó nélkül.
Majd a nyitólapon válaszd ki a privilégiumokat, és adj jelszót a rootnak...
root:~# dpkg -i /home/webdev/install/phpmyadmin_2.11.3-1.3_i386.uhu
Új csomag kiválasztása: phpmyadmin.
(Adatbázis olvasása ... Most 407289 fájl és könyvtár telepített.)
Kicsomagolás: phpmyadmin innen: .../phpmyadmin_2.11.3-1.3_i386.uhu ...
dpkg: függőségi gondok miatt nem beállítható e csomag: phpmyadmin:
phpmyadmin függőségek: mysql-server; ám:
mysql-server csomag még beállítatlan.
dpkg: hibás feldolgozás: phpmyadmin (--install):
függőségi hibák - e csomag beállítatlan maradt
Hibák történtek a feldolgozáskor:
phpmyadmin
apt-get install esetében is hibaüzenet jön.msandor
Valami a mysql-server-nél nem működik.szerintem ezért nem tudtad eddig beállítani a root jelszavát, mert
rendesen fel sincs telepítve!én a helyedben kiadnám az apt-get --purge remove mysql-server parancsot,
majd kézzel kitörölném az esetlegesen megmaradt /var/lib/mysql mappát,
és feltenném újra a phpmyadmint, mert ő felrakja a mysql-servert is...
Az eltávolításkor ezt kapom:
Eltávolítás: mysql-server ...
mysql-server beállító fájlok törlése ...
dpkg - figyelem: a(z) mysql-server törlésekor a(z) `/var/run/mysqld'
könyvtár nem üres, így azt nem töröltem.
dpkg - figyelem: a(z) mysql-server törlésekor a(z) `/var/lib/mysql/mysql'
könyvtár nem üres, így azt nem töröltem.
dpkg - figyelem: a(z) mysql-server törlésekor a(z) `/var/lib/mysql'
könyvtár nem üres, így azt nem töröltem.
A /var/run/mysqld mappát is törölnöm kell?Páder Rezső
Ha ez nem üres, akkor fut a mysqld.
Alapból egy mysqld.pid és egy mysqld.lock van benne.
Szóval.
service mysqld stop
töröld a /var/lib/mysql/mysql mappát
töröld a /var/run/mysqld mappát
apt-get istall mysql*
tedd fel a phpmyadmin-t
service mysqld start
böngészőből indítsd a phpmyadmin-t (apache fusson)
lépj be, mint root, jelszó nélkül.
kb ennyi :)
Továbbra sem jó:
Kicsomagolás: mysql-server innen: .../mysql-server_5.0.51-2.1_i386.uhu ...
Beállítás: mysql-server (5.0.51-2.1) ...
ERROR: 1062 Duplicate entry 'localhost-' for key 1
080121 10:47:14 [ERROR] Aborting
080121 10:47:14 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
dpkg: hibás feldolgozás: mysql-server (--configure):
post-installation script alfolyamat 1 hibakóddal kilépett
Hibák történtek a feldolgozáskor:
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Próbálkozom:root:~# mysqld --help
mysqld Ver 5.0.51 for uhu-linux-gnu on i586 (Source distribution)
Copyright (C) 2000 MySQL AB, by Monty and others
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Starts the MySQL database server
Usage: mysqld [OPTIONS]
For more help options (several pages), use mysqld --verbose --help
root:~# service mysqld start
MySQL adatbázis-szerver (mysqld) indítása [HIBA]
Közben egy újabb ötlet:Fenyvesi Béla
Én is ezzel küzdöttem.
Valamiért a mysql-server program úgy érzékeli, hogy két localhost bejegyzés van(?)
A megoldás az lett, hogy nevet kellett adnom a gépemnek. Ezután szépen felment a csomag.
Na és azt hogyan kell?
Vezérlőpult / Hálózati beállítások / Hálózati kártyák / Gépnév - localhost --> localhost2
root@localhost2:~# apt-get install phpmyadmin
Csomaglisták olvasása... Kész
Függőségi fa építése... Kész
Az alábbi extra csomagok kerülnek telepítésre:
mysql-server
Az alábbi ÚJ csomagok lesznek telepítve:
mysql-server phpmyadmin
0 frissített, 2 újonnan telepített, 0 eltávolítandó és 12 nem frissített.
Letöltendő az archívumokból: 0B/10,7MB
Kicsomagolás után 25,8MB lemezterületet használok fel
Folytatni akarod [Y/n]? y
FIGYELEM: Az alábbi csomagok nem hitelesíthetők!
mysql-server phpmyadmin
A hitelesítési figyelmeztetést átléptem.
Új csomag kiválasztása: mysql-server.
(Adatbázis olvasása ... Most 407651 fájl és könyvtár telepített.)
Kicsomagolás: mysql-server innen: .../mysql-server_5.0.51-2.1_i386.uhu ...
Új csomag kiválasztása: phpmyadmin.
Kicsomagolás: phpmyadmin innen: .../phpmyadmin_2.11.3-1.1_i386.uhu ...
Beállítás: mysql-server (5.0.51-2.1) ...
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 localhost2 password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
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
Beállítás: phpmyadmin (2.11.3-1.1) ...
Szóval eddig megy!!!
Nézzük meg, hogy elindul-e a mysql szerver?
root@localhost2:~# service mysqld start
MySQL adatbázis-szerver (mysqld) indítása [ OK ]
Ez is jó!Most nézzük a root jelszót:
root@localhost2:~# /usr/bin/mysqladmin -u root password "valami"
Akkor most hozzunk létre adatbázist:
root@localhost2:~# /usr/bin/mysql_install_db --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OK
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 localhost2 password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
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 mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
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
Ez is jó!Akkor most egy CMS Made Simple teszt adatbázis jön a localhost2-re!
root@localhost2:~# /usr/bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.51 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE cmsms;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES
-> ON cmsms.*
-> TO cmsms@localhost2
-> identified by 'cmsms';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> EXIT
Bye
Ez is rendben van.
Köszönet a megoldásért Fenyvesi Bélának! (és persze Páder Rezsőnek és Márkus Sándornak)
Sikerült beleütközni egy bug-ba.

SP
Utolsó kommentek