[Rezolvat] Mysql in Mandriva 2011

12 posts / 0 new
Last post
culeaviorel
[Rezolvat] Mysql in Mandriva 2011

Salut,

Am instalat Mandriva 2011, cu mediile 2011 oficiale (daca trebuie dau detalii), si vreau si mysql sa instalez, s-a instalat tot normal dar cand dau comanda:

[root@localhost mysqld]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost mysqld]#

ma poate ajuta cineva?

Multumesc.

N3o
N3o's picture
Si logurile? ce zic? prin

Si logurile? ce zic? prin /var/log/ si systemctl status

Patkos Csaba
Uite, la mine merge. Si tu ai

Uite, la mine merge. Si tu ai incercat la fel?

Ce zice /etc/init.d/mysqld status ???
Apare ceva legat de asta in /var/log/messagessau/var/log/syslogsau/var/log/mysqld/*.log??

Asa am facut eu:
[root@localhost csaba]# urpmi mysql phpmyadmin
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Dist DEpoch Arch
(medium "Main")
apache-mod_php 5.3.8 1 mdv 2011.0 x86_64
lib64mbfl1 1.1.0 5 mdv 2011.0 x86_64
lib64mcrypt4 2.5.8 13 mdv 2011.0 x86_64
lib64onig2 5.9.2 3 mdv 2011.0 x86_64
libmcrypt 2.5.8 13 mdv 2011.0 x86_64
mysql 5.5.15 1 mdv 2011.0 x86_64
php-mbstring 5.3.8 1 mdv 2011.0 x86_64
php-mcrypt 5.3.8 1 mdv 2011.0 x86_64
(medium "Contrib")
phpmyadmin 3.4.4 1 mdv 2011.0 noarch
20MB of additional disk space will be used.
Proceed with the installation of the 9 packages? (Y/n)
$MIRRORLIST: media/main/release/lib64onig2-5.9.2-3-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/lib64mbfl1-1.1.0-5-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/lib64mcrypt4-2.5.8-13-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/apache-mod_php-5.3.8-1-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/libmcrypt-2.5.8-13-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/php-mbstring-5.3.8-1-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/mysql-5.5.15-1-mdv2011.0.x86_64.rpm
$MIRRORLIST: media/main/release/php-mcrypt-5.3.8-1-mdv2011.0.x86_64.rpm
installing lib64onig2-5.9.2-3-mdv2011.0.x86_64.rpm lib64mbfl1-1.1.0-5-mdv2011.0.x86_64.rpm apache-mod_php-5.3.8-1-mdv2011.0.x86_64.rpm lib64mcrypt4-2.5.8-13-mdv2011.0.x86_64.rpm libmcrypt-2.5.8-13-mdv2011.0.x86_64.rpm php-mbstring-5.3.8-1-mdv2011.0.x86_64.rpm mysql-5.5.15-1-mdv2011.0.x86_64.rpm php-mcrypt-5.3.8-1-mdv2011.0.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ########################################################
1/9: libmcrypt #######################################################
2/9: lib64mbfl1 #######################################################
3/9: lib64onig2 #######################################################
4/9: mysql ########################################################
5/9: apache-mod_php #####################################################
Restarting httpd (via systemctl): [ OK ]
6/9: lib64mcrypt4 #######################################################
7/9: php-mbstring #######################################################
8/9: php-mcrypt #######################################################
----------------------------------------------------------------------
More information on package mysql-5.5.15-1-mdv2011.0.x86_64
The initscript used to start mysql has been reverted to use the one shipped
by MySQL AB. This means the following changes:
* The generation of the initial system mysql database is now done when mysql
is started from the initscript and only if the /var/lib/mysql/mysql
directory is empty (mysql_install_db). Previousely this was quite hidden and
silently done at (rpm) install time. As a consequence to this change you may
have to perform some manual tasks to upgrade the mysql system database and
such. So, doing something like this might help you:
/etc/rc.d/init.d/mysqld stop
TMPDIR=/var/tmp mysql_install_db
mysql_upgrade
The cluster functionalities (ndb) has been deactivated and will be removed in
future mysql versions. A new product named mysql-cluster has been added (in
contrib) that replaces the cluster functionalities.
The mysql-common-core package ships with a default /etc/my.cnf file that is
based on the my-medium.cnf file that comes with the source code.
Starting from mysql-5.1.43-2 the storage engines is built as dynamically
loadable modules. You can either load the engines using the /etc/my.cnf file or
at runtime. Please look at these lines in the /etc/my.cnf file to enable
additional engines or disable one or more of the default ones:
plugin_dir=/usr/lib64/mysql/plugin
plugin-load=ha_archive.so;ha_blackhole.so;ha_federated.so
Starting from mysql-5.1.44-3 the html documentation and the mysql.info is not
shipped with the Mandriva packages due to strict licensing.
----------------------------------------------------------------------
$MIRRORLIST: media/contrib/release/phpmyadmin-3.4.4-1-mdv2011.0.noarch.rpm
installing phpmyadmin-3.4.4-1-mdv2011.0.noarch.rpm from /var/cache/urpmi/rpms
Preparing... #####################################################
9/9: phpmyadmin ##################################################
Restarting httpd (via systemctl): [ OK ]
----------------------------------------------------------------------
More information on package phpmyadmin-3.4.4-1-mdv2011.0.noarch
The actual configuration file is /etc/phpmyadmin/config.php.
The config.default.inc.php file contains default values, and is not supposed to
be modified.
----------------------------------------------------------------------
[root@localhost csaba]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): [ OK ]
[root@localhost csaba]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.15 Mandriva Linux - MySQL Community Edition (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database JustATest
-> ;
Query OK, 1 row affected (0.00 sec)
mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| JustATest |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)
mysql> quit
Bye

Csabi′s BLOG

Linux registered user # 457717

culeaviorel
am facut

am facut si dupa varianta ta si tot nu merge,
iata cate ceva

[root@localhost viorel]# /etc/init.d/mysqld status
[FAILED]
[root@localhost viorel]# cat /var/log/messages | tail -20
Sep 10 14:14:23 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:14:23 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:14:23 localhost dhclient: bound to 192.168.0.9 -- renewal in 26 seconds.
Sep 10 14:14:25 localhost chrome: gethostby*.getanswer: asked for "realtime.disqus.net", got "rt.disqus.com"
Sep 10 14:14:49 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:14:50 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:14:50 localhost dhclient: bound to 192.168.0.9 -- renewal in 26 seconds.
Sep 10 14:15:16 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:15:16 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:15:16 localhost dhclient: bound to 192.168.0.9 -- renewal in 29 seconds.
Sep 10 14:15:19 localhost smbd[2357]: [2011/09/10 14:15:19.002278, 0] smbd/server.c:281(remove_child_pid)
Sep 10 14:15:19 localhost smbd[2357]: Could not find child 16201 -- ignoring
Sep 10 14:15:45 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:15:45 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:15:45 localhost dhclient: bound to 192.168.0.9 -- renewal in 32 seconds.
Sep 10 14:16:17 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:16:17 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:16:17 localhost dhclient: bound to 192.168.0.9 -- renewal in 31 seconds.
Sep 10 14:16:19 localhost smbd[2357]: [2011/09/10 14:16:19.004176, 0] smbd/server.c:281(remove_child_pid)
Sep 10 14:16:19 localhost smbd[2357]: Could not find child 16646 -- ignoring
[root@localhost viorel]#
[root@localhost viorel]# cat /var/log/syslog | tail -20
Sep 10 14:15:16 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:15:16 localhost dhclient: bound to 192.168.0.9 -- renewal in 29 seconds.
Sep 10 14:15:19 localhost smbd[2357]: [2011/09/10 14:15:19.002278, 0] smbd/server.c:281(remove_child_pid)
Sep 10 14:15:19 localhost smbd[2357]: Could not find child 16201 -- ignoring
Sep 10 14:15:45 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:15:45 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:15:45 localhost dhclient: bound to 192.168.0.9 -- renewal in 32 seconds.
Sep 10 14:16:17 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:16:17 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:16:17 localhost dhclient: bound to 192.168.0.9 -- renewal in 31 seconds.
Sep 10 14:16:19 localhost smbd[2357]: [2011/09/10 14:16:19.004176, 0] smbd/server.c:281(remove_child_pid)
Sep 10 14:16:19 localhost smbd[2357]: Could not find child 16646 -- ignoring
Sep 10 14:16:48 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:16:48 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:16:48 localhost dhclient: bound to 192.168.0.9 -- renewal in 27 seconds.
Sep 10 14:17:15 localhost dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Sep 10 14:17:15 localhost dhclient: DHCPACK from 192.168.0.1
Sep 10 14:17:15 localhost dhclient: bound to 192.168.0.9 -- renewal in 26 seconds.
Sep 10 14:17:19 localhost smbd[2357]: [2011/09/10 14:17:19.009796, 0] smbd/server.c:281(remove_child_pid)
Sep 10 14:17:19 localhost smbd[2357]: Could not find child 17065 -- ignoring
[root@localhost viorel]#
[root@localhost viorel]# cat /var/log/mysqld/*.log | tail -20
cat: /var/log/mysqld/*.log: No such file or directory
[root@localhost viorel]#

nu am nimic in acest folder....
ceva nu e bine la instalare cu mysql, am mandriva 2011 instalata de pe site-ul oficial....

[root@localhost viorel]# systemctl status
Too few arguments.
[root@localhost viorel]#

ce altceva sa mai incerc?

Multumesc mult

Patkos Csaba
Cum ai instalat mysql? Ai

Cum ai instalat mysql? Ai modificat ceva la setarile mysql? Asculta cumva deja un alt program pe acelasi port cu mysql (asta cam putin probabil)?

Csabi′s BLOG

Linux registered user # 457717

culeaviorel
Am instalat pur si simplu,

Am instalat pur si simplu, urpmi mysql si gata,
nu i-am facut nici o modificare... si nu vrea sa restarteze serverul mysqld din /etc/init.d/mysqld restart, imi arata eroare
alte modificari nu am facut
am dezinstalat tot si am instalat din nou... si tot asa imi arata eroare

maaxx
maaxx's picture
Ia incearca si tu `urpmi

Ia incearca si tu `urpmi mysql-server`

' Zombie: "Thou canst not kill that which doth not live. But you can blast it into chunky kibbles." ' (Quake1 manual, chapter VI, section D, line 676)

Patkos Csaba
In 2011 nu mai exista

In 2011 nu mai exista pachetul mysql-server. Pur si simplu se numeste mysql.

[csaba@localhost tmp]$ urpmq mysql-server
No package named mysql-server

Csabi′s BLOG

Linux registered user # 457717

culeaviorel
Corec,

Corec,

Am dezinstalat tot ce aveam mysql si am instalat din nou, iata pasii

[root@localhost viorel]# urpmi mysql
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Dist DEpoch Arch
(medium "Main")
lib64aio1 0.3.109 3 mdv 2011.0 x86_64
mysql 5.5.15 1 mdv 2011.0 x86_64
mysql-client 5.5.15 1 mdv 2011.0 x86_64
mysql-common 5.5.15 1 mdv 2011.0 x86_64
mysql-common-core 5.5.15 1 mdv 2011.0 x86_64
mysql-core 5.5.15 1 mdv 2011.0 x86_64
72MB of additional disk space will be used.
Proceed with the installation of the 6 packages? (Y/n) y
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/mysql-common-5.5.15-1-mdv2011.0.x86_64.rpm
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/mysql-core-5.5.15-1-mdv2011.0.x86_64.rpm
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/mysql-client-5.5.15-1-mdv2011.0.x86_64.rpm
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/mysql-5.5.15-1-mdv2011.0.x86_64.rpm
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/mysql-common-core-5.5.15-1-mdv2011.0.x86_64.rpm
rsync://ftp.iasi.roedu.net/mirrors/ftp.mandrake.com/official/2011/x86_64/media/main/release/lib64aio1-0.3.109-3-mdv2011.0.x86_64.rpm
installing mysql-common-5.5.15-1-mdv2011.0.x86_64.rpm mysql-core-5.5.15-1-mdv2011.0.x86_64.rpm mysql-client-5.5.15-1-mdv2011.0.x86_64.rpm mysql-common-core-5.5.15-1-mdv2011.0.x86_64.rpm mysql-5.5.15-1-mdv2011.0.x86_64.rpm lib64aio1-0.3.109-3-mdv2011.0.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ###########################################################################
1/6: mysql-common-core ###########################################################################
2/6: mysql-client ###########################################################################
3/6: lib64aio1 ###########################################################################
4/6: mysql-common ###########################################################################
5/6: mysql-core ###########################################################################
6/6: mysql ###########################################################################
----------------------------------------------------------------------
More information on package mysql-5.5.15-1-mdv2011.0.x86_64
The initscript used to start mysql has been reverted to use the one shipped
by MySQL AB. This means the following changes:
* The generation of the initial system mysql database is now done when mysql
is started from the initscript and only if the /var/lib/mysql/mysql
directory is empty (mysql_install_db). Previousely this was quite hidden and
silently done at (rpm) install time. As a consequence to this change you may
have to perform some manual tasks to upgrade the mysql system database and
such. So, doing something like this might help you:
/etc/rc.d/init.d/mysqld stop
TMPDIR=/var/tmp mysql_install_db
mysql_upgrade
The cluster functionalities (ndb) has been deactivated and will be removed in
future mysql versions. A new product named mysql-cluster has been added (in
contrib) that replaces the cluster functionalities.
The mysql-common-core package ships with a default /etc/my.cnf file that is
based on the my-medium.cnf file that comes with the source code.
Starting from mysql-5.1.43-2 the storage engines is built as dynamically
loadable modules. You can either load the engines using the /etc/my.cnf file or
at runtime. Please look at these lines in the /etc/my.cnf file to enable
additional engines or disable one or more of the default ones:
plugin_dir=/usr/lib64/mysql/plugin
plugin-load=ha_archive.so;ha_blackhole.so;ha_federated.so
Starting from mysql-5.1.44-3 the html documentation and the mysql.info is not
shipped with the Mandriva packages due to strict licensing.
----------------------------------------------------------------------
[root@localhost viorel]# /etc/init.d/mysqld status
[FAILED]
[root@localhost viorel]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): [ OK ]
[root@localhost viorel]# /etc/init.d/mysqld stop
Stopping mysqld (via systemctl): [ OK ]
[root@localhost viorel]# mysqld_safe --skip-grant-tables &
[1] 10486
[root@localhost viorel]# 110910 17:08:09 mysqld_safe Logging to '/var/lib/mysql/localhost.localdomain.err'.
110910 17:08:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.15 Mandriva Linux - MySQL Community Edition (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql;
Database changed
mysql> update user set password=PASSWORD ("pass") where User='root';
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4 Changed: 4 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@localhost viorel]# /etc/init.d/mysqld stop
Stopping mysqld (via systemctl): [ OK ]
[root@localhost viorel]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost viorel]# /etc/init.d/mysqld restart
Restarting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost viorel]# /etc/init.d/mysqld stop
Stopping mysqld (via systemctl): [ OK ]
[root@localhost viorel]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost viorel]# /etc/init.d/mysqld stop
Stopping mysqld (via systemctl): [ OK ]
[root@localhost viorel]# /etc/init.d/mysqld status
[ OK ]
[root@localhost viorel]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost viorel]# /etc/init.d/mysqld restart
Restarting mysqld (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost viorel]#

si dupa cum se vede tot nu merge, unde oare sa fi gresit, ca nu instalez prima data mysql...

Multumesc de orice sugestie

Patkos Csaba
Vezi sa nu fie vreun proces

Vezi sa nu fie vreun proces de mysql ruland si blocat din vreun motiv misterios.
[root@localhost tmp]# ps aux | grep mysql
saba 4403 0.0 1.0 1264236 31552 ? Sl 13:16 0:08 /usr/sbin/mysqld --defaults-file=/home/csaba/.local/share/akonadi//mysql.conf --datadir=/home/csaba/.local/share/akonadi/db_data/ --socket=/home/csaba/.local/share/akonadi/socket-localhost.localdomain/mysql.socket
root 17796 0.0 0.0 12700 1600 ? S 17:29 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid
mysql 18155 0.0 1.4 472396 44732 ? Sl 17:29 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock --port=3306
root 18731 0.0 0.0 105604 856 pts/4 S+ 17:34 0:00 grep --color mysql
[root@localhost tmp]# kill -9 17796
[root@localhost tmp]# kill -9 18155
[root@localhost tmp]# kill -9 4403
[root@localhost tmp]# ps aux | grep mysql
root 18749 0.0 0.0 105600 852 pts/4 S+ 17:35 0:00 grep --color mysql
[root@localhost tmp]# /etc/init.d/mysqld start
Starting mysqld (via systemctl): [ OK ]
[root@localhost tmp]#

PS: pune te rog codul ce scrii intre taguri <code> ... </code> si asigura-te ca se afiseaza bine. Nu de alta, dar se umple postul cu prea mult citat, iar eu ma plictisesc sa tot editez posturile. Mersi.

Csabi′s BLOG

Linux registered user # 457717

culeaviorel
Multumesc, de corectare...

Multumesc, de corectare...

am reusit ceva....
problema era cand editez /etc/my.cnf
randul acesta: master-host = localhost, asa nu merge
daca il pun: #master-host = localhost, merge fara probleme
eu mai inainte configuram asa si nu era probleme dar acum vad ca nu merge...
o sa mai incerc si alte obtiuni, multumesc de ajutor


[root@localhost viorel]# ps aux | grep mysql
root 19931 0.0 0.0 12732 1652 ? S 17:50 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid
mysql 20278 0.0 1.1 472396 42012 ? Sl 17:50 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock --port=3306
root 22185 0.0 0.0 105596 900 pts/1 S+ 17:53 0:00 grep --color mysql
[root@localhost viorel]#

in my.cnf randul #master-host = localhost e comentariu,
daca scot comentariu, iata ce imi arata

[root@localhost viorel]# ps aux | grep mysql
root 23255 0.0 0.0 105592 900 pts/1 S+ 17:54 0:00 grep --color mysql
[root@localhost viorel]#

cred ca in my.cnf e problema, nu fac setarile corect

Multumesc de ajutor

Patkos Csaba
Cu placere. Ma bucur ca ai

Cu placere. Ma bucur ca ai reusit sa aflii sursa problemei.

Csabi′s BLOG

Linux registered user # 457717