Mỗi lần tôi khởi động lại máy chủ MySQLLàm cách nào để khởi động lại máy chủ mysql?
[email protected]:/$ sudo opt/bitnami/ctlscript.sh start server
WWarning: World-writable config file '/opt/bitnami/mysql/my.cnf' is ignored
Warning: World-writable config file '/opt/bitnami/mysql/my.cnf' is ignored
121120 12:30:18 mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
121120 12:30:18 mysqld_safe Starting mysqld daemon with databases from /opt/bitnami/mysql/data
121120 12:30:20 mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/ip-10-136-14-170.pid ended
/opt/bitnami/mysql/scripts/ctl.sh : mysql could not be started
Các máy chủ đáp ứng với các lỗi sau:
(2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")
Xin vui lòng cho tôi biết tôi phải làm khắc phục vấn đề này.
Điều này có vẻ như nó thuộc về serverfault –
Nếu mysql được cài đặt dưới dạng dịch vụ (hầu hết thời gian) bạn có thể thực hiện 'dịch vụ mysqld restart' hoặc' /etc/init.d/mysqld restart'. Tôi không biết gì về amazon/aws hoặc mysql-python hoặc bitnami, nhưng bạn có thể thử. – Martin
không thực sự là một câu hỏi lập trình, tắt chủ đề trên stackoverflow. thử 'chmod 0644 /opt/bitnami/mysql/my.cnf' và khởi động lại. nếu nó không giúp -> serverfault – Gryphius