2012-07-30 3 views
0

"Webadmin"으로 Fedora 17을 실행합니다. 그래서 webadmin 옵션을 사용하여 MySQL 데이터베이스에 최대 업로드 크기를 업데이트하려고했습니다. 이제, mysqld를 다시 시작할 수 없습니다. 난 더 GUI를 가지고, 그래서 systemctl status mysqld.service을 실행할 때 나는 나에게이 메시지를 제공합니다누락 된 mysql.sock 파일. phpMyAdmin - Fedora 17

[[email protected] ~]# systemctl status mysqld.service 
mysqld.service - MySQL database server 
      Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled) 
      Active: failed (Result: exit-code) since Mon, 30 Jul 2012 15:08:26 -0400; 6min ago 
     Process: 3560 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=1/FAILURE) 
     Process: 3559 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS) 
     Process: 3542 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS) 
      CGroup: name=systemd:/system/mysqld.service 

Jul 30 15:08:23 localhost mysqld_safe[3559]: 120730 15:08:23 mysqld_safe Logging to '/var/log/mysqld.log'. 
Jul 30 15:08:23 localhost mysqld_safe[3559]: 120730 15:08:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 

또는 내 phpMyAdmin을 화면에 액세스하려고 할 때이 메시지가 표시 : 나는 터미널 locate mysql.sock에서 실행하면

phpMyAdmin - Error 
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 
The server is not responding (or the local server's socket is not correctly configured). 

그것을 올바른 경로는 /var/lib/mysql/mysql.sock입니다. 그러나이 명령을 실행할 때 ls /var/lib/mysql,이 파일을 찾을 수 없습니다.

도와주세요.

+0

"getenforce"를 사용하면 "SELinux"날씨를 볼 수 있습니다. 예상치 못한 문제가 발생할 수 있습니다. 활성화되어있는 경우 "setenforce 0"을 사용하여 비활성화하십시오. 자세한 내용을 보려면이 [URL] (http://www.linuxforums.org/forum/red-hat-fedora-linux/187866-mysql-not-starting-fedora-16-a.html)을 클릭하십시오. – zczhuohuo

답변

0

내 모니터를 펀치하고 서버를 차고 난 후 수정 사항을 찾을 수있었습니다. 얼마나 안전하고 좋은지 잘 모르겠지만 그것은 나에게 효과적이다.

터미널에서 당신의 my.cnf 파일을 열어 # nano /etc/my.cnf

삭제하거나 다음 그냥 내가 어떤을 위해 http://blog.mclaughlinsoftware.com/2011/12/07/fixing-my-cnf-on-fedora/

[mysqld] 
# Settings user and group are ignored when systemd is used. 
# If you need to run mysqld under different user or group, 
# customize your systemd unit file for mysqld according to the 
# instructions in http://fedoraproject.org/wiki/Systemd 

# Default directory. 
datadir=/var/lib/mysql 

# The TCP/IP Port the MySQL Server listens on. 
port=3306 

# The Linux Socket the MySQL Server uses when not using a listener. 
# socket=/var/lib/mysql/mysql.sock 

# Disabling symbolic-links is recommended to prevent assorted security risks 
symbolic-links=0 

# The default storage engine that will be used when creating new tables. 
default-storage-engine=INNODB 

# Set the SQL mode to strict. 
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 

# Set the maximum number of connections. 
max_connections=100 

# Set the number of open tables for all threads. 
table_cache=256 

# Set the maximum size for internal (in-memory) temporary tables. 
tmp_table_size=26M 

# Set how many threads should be kept in a cache for reuse. 
thread_cache_size=8 

# MyISAM configuration. 
myisam_max_sort_file_size=100G 
myisam_sort_buffer_size=52M 
key_buffer_size=36M 
read_rnd_buffer_size=256K 
sort_buffer_size=256K 

# InnoDB configuration. 
innodb_data_home_dir=/var/lib/mysql 
innodb_additional_mem_pool_size=2M 
innodb_flush_log_at_trx_commit=1 
innodb_log_buffer_size=1M 
innodb_buffer_pool_size=25M 
innodb_log_file_size=5M 
innodb_thread_concurrency=8 

[mysqld_safe] 
log-error=/var/log/mysqld.log 
pid-file=/var/run/mysqld/mysqld.pid 

열기를 발견이 코드를 붙여 '#'와 기존의 모든 설정을 언급 의견 또는 제안. 감사합니다.