• 27-01-2013, 19:38:28
    #1
    Merhaba arkadaşlar direct admin de şöyle bir hata almaktayım bu konuda yardımcı olabiliecek varı arkadaşlar bana yada yapabilen yada nasıl yapacagı hakkında bilgi verebilecek ?


    |LANG_DB_BEFORE_PMA|
    phpMyAdmin
    Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 19:02:33 -->-> Daha önceki mesaj 18:05:31 --

    Bilgisi olan yokmu acaba yardım edecek bir kişi ?

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 19:33:27 -->-> Daha önceki mesaj 19:02:33 --

    ssh ile mysql araştırmalarıma göre restart atmam gerektigini ögrendim lakin ssh ile şu sekilde bir sonuc aldım şua nssh ile komut giremiyorum ?

    [admin@linuxtr ~]$ ps -ef|grep mysqld
    admin 26620 25462 0 20:20 pts/0 00:00:00 grep mysqld
    [admin@linuxtr ~]$ kill -9 26620
    -bash: kill: (26620) - No such process
    [admin@linuxtr ~]$ kill -9 25462


    ne yapmam gerek arkadaşlar ?

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 19:38:28 -->-> Daha önceki mesaj 19:33:27 --

    şu an durum böyle arkadaşlar restart start atmaya çalıştım malesef eroro alıyorum yardım edecek varmı ?


    Last login: Sun Jan 27 20:15:40 2013 from 78.182.117.49
    [admin@linuxtr ~]$ /etc/init.d/mysqld
    Usage: mysqld {start|stop|restart|reload|force-reload|status} [ MySQL server options ]
    [admin@linuxtr ~]$ restart
    restart: missing job name
    Try `restart --help' for more information.
    [admin@linuxtr ~]$ /etc/init.d/mysqld restart
    ERROR! MySQL server PID file could not be found!
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/linuxtr.videomnet.net.pid).
    [admin@linuxtr ~]$ /etc/init.d/mysqld start
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/linuxtr.videomnet.net.pid).
  • 27-01-2013, 22:45:14
    #2
    Satart dedigimde bu gelmekte hala cözüm bulamadım

    [admin@linuxtr ~]$ /etc/init.d/mysqld start
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/linuxtr.videomnet.net.pid).
  • 27-01-2013, 23:28:36
    #3
    Sunucudaki hostname mi değiştirdiniz ?

    Eğer öyle ise sunucuyu restart edip terkar mysqli kontrol edin.

    ===============================

    Alternatif 2

    cp -f /usr/share/mysql/my-large.cnf /etc/my.cnf

    y enter

    service mysql restart veya service mysqld restart

    Neden böyle bir işlem yapıyoruz, Bazem mysql ufakta olsa güncelleme yapıyor ve bazı fonksiyonların adı veya özelliği değişiyor my.conf dosyasındaki değerlerde mysql'in start olmasını engeliyor.

    tek tek loglara bakmak uzun sürebilir, en bilindik yöntemleri paylaşıyorum sizinle eğer sonuç alamazsanız tekrar özel mesaj ile bilgi verirsiniz.
  • 27-01-2013, 23:49:44
    #4
    Last login: Mon Jan 28 00:28:17 2013 from 78.181.249.94
    [admin@linuxtr ~]$ cp -f /usr/share/mysql/my-large.cnf /etc/my.cnf
    cp: cannot remove `/etc/my.cnf': Permission denied
    [admin@linuxtr ~]$ service mysql restart
    mysql: unrecognized service
    [admin@linuxtr ~]$ service mysqld restart
    ERROR! MySQL server PID file could not be found!
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/linuxtr.videomnet.net.pid).
    [admin@linuxtr ~]$


    Host name degiştirmedim hocam dedikleriniz yapmamda sonuc bu sekilde cıktı
  • 28-01-2013, 00:01:06
    #5
    admin olarak giriş yapmışsınız.

    Bu işlemleri yapabilmeniz için root olarak giriş yapıp root yetkisine sahip olmanız gerekiyor.

    root olarak giriş yapıp tekrar deneyin.
  • 28-01-2013, 02:35:05
    #6
    root olarak ta denedim malesef gene olmadı shutDown yapsam düzelme imkanı varmı acaba yada boot ?

    altarnetif sonuc var elde var sıfır

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 00:35:02 -->-> Daha önceki mesaj 00:24:09 --

    [root@linuxtr ~]# cp -f /usr/share/mysql/my-large.cnf /etc/my.cnf
    cp: overwrite `/etc/my.cnf'? y
    [root@linuxtr ~]# service mysql restart
    mysql: unrecognized service

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 00:45:20 -->-> Daha önceki mesaj 00:35:02 --

    sunucuya reboot yaptım ama tekrar denememde sonuc yine aynı

    The system is going down for reboot NOW!
    [root@linuxtr ~]# Last login: Mon Jan 28 01:39:10 2013 from 78.175.111.103
    [root@linuxtr ~]# cp -f /usr/share/mysql/my-large.cnf /etc/my.cnf
    cp: overwrite `/etc/my.cnf'? y
    [root@linuxtr ~]# service mysql restart
    mysql: unrecognized service
    [root@linuxtr ~]# service mysqld restart
    ERROR! MySQL server PID file could not be found!
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/linuxtr.videomnet.net.pid).
    [root@linuxtr ~]#

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 01:24:53 -->-> Daha önceki mesaj 00:45:20 --

    my.cnf içerigide bu arkadaşlar altarnetif çözümler üretecek ve hata hakkında bilgi sahibi olan ?

    # Example MySQL config file for large systems.
    #
    # This is for a large system with memory = 512M where the system runs mainly
    # MySQL.
    #
    # MySQL programs look for option files in a set of
    # locations which depend on the deployment platform.
    # You can copy this option file to one of those
    # locations. For information about these locations, see:
    # http://dev.mysql.com/doc/mysql/en/option-files.html
    #
    # In this file, you can use all long options that a program supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.

    # The following options will be passed to all MySQL clients
    [client]
    #password = your_password
    port = 3306
    socket = /var/lib/mysql/mysql.sock

    # Here follows entries for some specific programs

    # The MySQL server
    [mysqld]
    port = 3306
    socket = /var/lib/mysql/mysql.sock

    skip-external-locking
    key_buffer_size = 256M
    max_allowed_packet = 1M
    table_open_cache = 256
    sort_buffer_size = 1M
    read_buffer_size = 1M
    read_rnd_buffer_size = 4M
    myisam_sort_buffer_size = 64M
    thread_cache_size = 8
    query_cache_size= 16M

    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency = 8

    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!
    #

    #skip-networking

    # Replication Master Server (default)
    # binary logging is required for replication
    log-bin=mysql-bin

    # binary logging format - mixed recommended
    binlog_format=mixed

    # required unique id between 1 and 2^32 - 1
    # defaults to 1 if master-host is not set
    # but will not function as a master if omitted
    server-id = 1

    # Replication Slave (comment out master section to use this)
    #
    # To configure this host as a replication slave, you can choose between

    # two methods :
    #
    # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
    # the syntax is:
    #
    # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
    # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
    #
    # where you replace <host>, <user>, <password> by quoted strings and
    # <port> by the master's port number (3306 by default).
    #
    # Example:
    #
    # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
    # MASTER_USER='xxx', MASTER_PASSWORD='xxxxx';
    #
    # OR
    2) Set the variables below. However, in case you choose this method, then
    # start replication for the first time (even unsuccessfully, for example
    # if you mistyped the password in master-password and the slave fails to
    # connect), the slave will create a master.info file, and any later
    # change in this file to the variables' values below will be ignored and
    # overridden by the content of the master.info file, unless you shutdown
    # the slave server, delete master.info and restart the slaver server.
    # For that reason, you may want to leave the lines below untouched
    # (commented) and instead use CHANGE MASTER TO (see above)

    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id = 2
    #
    # The replication master for this slave - required
    #master-host = <hostname>

    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id = 2
    #
    # The replication master for this slave - required
    #master-host = <hostname>

    # The username the slave will use for authentication when connecting
    # to the master - required
    #master-user = <username>
    #
    # The password the slave will authenticate with when connecting to
    # the master - required
    #master-password = <password>
    #
    # The port the master is listening on.
    # optional - defaults to 3306
    #master-port = <port>
    #
    # binary logging - not required for slaves, but recommended
    #log-bin=mysql-bin

    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 256M
    #innodb_additional_mem_pool_size = 20M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 64M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50

    [mysqldump]
    quick
    max_allowed_packet = 16M

    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [myisamchk]
    key_buffer_size = 128M
    sort_buffer_size = 128M
    read_buffer = 2M
    write_buffer = 2M

    [mysqlhotcopy]
    interactive-timeout

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 01:58:57 -->-> Daha önceki mesaj 01:24:53 --

    Direct admin panelime girdigimde sistem bilgisinde MySQL *** Stopped *** yazmakta

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 02:35:05 -->-> Daha önceki mesaj 01:58:57 --

    Sanırım Sorun Burda bir yerde

    [root@linuxtr ~]# service --status-all
    crond (pid 878) is running...
    da-popb4smtp (pid 845) is running...
    directadmin (pid 852) is running...
    dovecot (pid 487) is running...
    exim (pid 858) is running...
    httpd (pid 19739) is running...
    Table: filter
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination

    Table: mangle
    Chain PREROUTING (policy ACCEPT)
    num target prot opt source destination

    Chain INPUT (policy ACCEPT)
    num target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination

    Chain POSTROUTING (policy ACCEPT)
    num target prot opt source destination

    Table: nat
    Chain PREROUTING (policy ACCEPT)
    num target prot opt source destination

    Chain POSTROUTING (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination

    ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
    named (pid 948) is running...
    rndc: connect failed: 127.0.0.1#953: connection refused
    named (pid 948) is running...
    netconsole module not loaded
    Configured devices:
    lo venet0
    Currently active devices:
    lo venet0
    nmbd is stopped
    nscd is stopped
    portreserve is stopped
    proftpd (pid 1611) is running...
    quota_nld is stopped
    rdisc is stopped
    rpcbind is stopped
    rsyslogd (pid 467) is running...
    saslauthd (pid 837) is running...
    smbd is stopped
    snmpd is stopped
    snmptrapd is stopped
    openssh-daemon (pid 535) is running...
    SIOCADDRT: File exists
    svnserve is stopped
    xinetd (pid 542) is running..
  • 29-01-2013, 01:40:12
    #7
    Vds ye format attırmama ragmen hala aynı hatayı almaktayım arkadaşlar cözüm yok sanırım bu işin var yada biz yanlış bir şey yapıyoruz :S

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 01:40:12 -->-> Daha önceki mesaj 00:20:08 --

    sonuc olarak yapabilecek birşey yok