Für die Entwicklung einiger eigener Plesk Extensions habe ich einen vServer gemietet auf dem ein Plesk Onyx läuft. Neulich gab es da 100 Paket-Updates und ich hab sie mal machen lassen. Kurz darauf der Schreck: Plesk funktionierte nicht mehr. Die Meldung: ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory. Und nun?
Ich habe im Internet gelesen und versucht. Nichts half. Etwa 10 Minuten nach dem „Update“-Klick wusste ich, das mysql nicht lief. Etwa 30 Minuten später wusste ich was los war:
1 2 |
tail -f /var/log/syslog & service start mysql |
Ergab:
1 2 3 4 5 6 7 |
Nov 19 08:09:33 v22016081573736335 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql Nov 19 08:09:33 v22016081573736335 mysqld: 161119 8:09:33 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. Nov 19 08:09:33 v22016081573736335 mysqld: /usr/sbin/mysqld: Error on realpath() on '/var/lib/mysql-files' (Error 2) Nov 19 08:09:33 v22016081573736335 mysqld: 161119 8:09:33 [ERROR] Failed to access directory for --secure-file-priv. Please make sure that directory exists and is accessible by MySQL Server. Supplied value : /var/lib/mysql-files Nov 19 08:09:33 v22016081573736335 mysqld: 161119 8:09:33 [ERROR] Aborting Nov 19 08:09:33 v22016081573736335 mysqld: Nov 19 08:09:33 v22016081573736335 mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended |
Es gab also irgendwelche Probleme mit dem Pfad „/var/lib/mysql-files“. Ich habe geprüft was darin ist und wollte schauen ob die Berechtigungen passen… Der Ordner existierte nicht! OK, daran wird es wohl liegen, doch wo bekomme ich den Ordner her und was gehört da rein.
Die Lösung ist simpel
Ganz ehrlich, ich habe das folgende im Netz als Kommentar gelesen und wollte einfach nicht daran glauben dass es wirklich hilft:
1 2 3 |
mkdir /var/lib/mysql-files chown -R mysql.mysql /var/lib/mysql-files service mysql start |
Also: Einfach Ordner anlegen, Dateiberechtigungen setzen und schon startet MySQL wieder.
Im Plesk fand ich einen gelben Warnhinweis, dass ein update nicht lief wie geplant und ich doch bitte die Reperatur (link) starten solle. Geklickt, gewartet: Fertig.
Pingback: plesk zend_db_adapter_exception | فارس نتورک
Danke !
You saved my day !
Oh Mann, vielen Dank, genau das war’s auch unter Centos nach Onyx Update Plesk
Wirklich. vielen Dank! Das hat mir heute wirklich den Tag gerettet. Stundenlange Suche und die Lösung geht in Sekundenschnelle. Danke.
Hey. I want to share with all the great news!
A month ago an anonymous source sent me 7 bitcoins of wallets that double the bitcoins you sent and send back your purses twice as much.
I am familiar with blockchain technology and therefore did not believe it.
But my curiosity has gone up.
I sent at my own risk and 0.5 bitcoins to one of these wallets and in just 2 hours, exactly 1 bitcoin came to my wallet.
I was shocked!
Then I started working with these bitcoins wallets and revealed the regularity that one wallet can send 0.5 to 5 bitcoins per day from one purse.
At the moment I have 350 bitcoins of wallets from which I send 350 – 700 bitcoins daily and get twice as much.
For a month, I became a multimillionaire.
Another month I will work and become a billionaire.
I already got what I wanted, I quit my job, paid off all my debts, bought a good house and a car from the Audi RS4.
Now I feel like a human being and live for my own pleasure.
These are the good bitcoins of wallets I earn:
16mKn71otoYgAxij3y6MuCkWKco7MEa7Rn
18WWctFEVNhLJKcg14wmykymx3kySuyTLy
1BC2uQHHUdJzgRog7JMVE5cgWh37NCxwJc
1L2NgRwBXb5kiQ4uNDT5iKHN1As6kkt4rL
17dvrJFxoXA6dDxeGoLx3iVp7ogcbvr2nN
1CnZgLpuPhr9e5PhPEJnDS8fh8HCM5w5oz
1MaRdde6X7SGuoCdFNL2fmgpLomdx7peGC
Now many people improve their financial status with these wallets but keep it a secret from everyone.
I hate poverty, so I share with you all this method of earning, grab a piece of this huge and juicy cake.
I will remind you once again. Send from one bitcoin your wallet strictly from 0.5 to 5 bitcoins per wallet per day, otherwise you will receive the same amount that you sent without doubling.
This scheme of work is completely safe. You can work like me, create a lot of wallets and send them from each of them to the above wallets.
Pingback: Sqlstate[hy000] [2002] No Such File or Directory