Réinitialiser le mot de passe root de MySQL ou MariaDB sous Debian photo

Réinitialiser le mot de passe root de MySQL ou MariaDB sous Debian

Vous avez perdu le mot de passe root de MySQL ou MariaDB sur Debian ? Avant de sortir la grosse artillerie, respirez deux secondes. Sur beaucoup d’installations Debian, le compte SQL root n’utilise pas forcément un mot de passe classique.

Avec MariaDB, il est fréquent que root utilise l’authentification par socket Unix. Cela signifie que l’utilisateur système root peut se connecter à MariaDB avec sudo mariadb ou sudo mysql, sans saisir de mot de passe SQL.

Donc, avant de réinitialiser brutalement le mot de passe, il faut identifier le serveur, vérifier le mode d’authentification, puis choisir la bonne procédure.

Lire Réinitialiser le mot de passe root de MySQL ou MariaDB sous Debian

WordPress : résoudre l'erreur "ftp_nlist() expects parameter 1 to be resource" photo

WordPress : corriger l’erreur ftp_nlist() expects parameter 1 to be resource

Lors d’une mise à jour WordPress, d’un plugin ou d’un thème, vous pouvez tomber sur cette erreur peu élégante :

Warning: ftp_nlist() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 402

Warning: ftp_pwd() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 226Langage du code : HTTP (http)

Avec les versions récentes de PHP, le message peut aussi apparaître sous une forme plus stricte :

ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null givenLangage du code : PHP (php)

Le problème ne vient pas de ftp_nlist() lui-même. Cette fonction ne fait que révéler le souci : WordPress essaie d’utiliser sa méthode FTP pour modifier des fichiers, mais il n’a pas de connexion FTP valide. En clair, WordPress cherche la porte de service, mais personne ne lui a donné la clé.

Lire WordPress : corriger l’erreur ftp_nlist() expects parameter 1 to be resource

Cheap Trick - When I Wake Up Tomorrow photo

Cheap Trick – When I Wake Up Tomorrow

« When I Wake Up Tomorrow » is a song by American rock band Cheap Trick, released in 2016 as the second and final single from their seventeenth studio album Bang, Zoom, Crazy… Hello.

It was written by Julian Raymond, Robin Zander, Rick Nielsen and Tom Petersson, and produced by Raymond and Cheap Trick.

The music video features Nielsen playing his 1966 Gretsch 6123 guitar, which previously appeared in the video for the band’s 1982 song « If You Want My Love »:

I never thought that I would be like this before
I never wanted just one kiss for sure
Well, maybe I didn’t understand
All you wanted was a one night stand, well
Never thought that I would beg like this for more

These days I wonder how I’m gonna make it tomorrow
These ways I’ll have to beg if I want to borrow
My love, here I’m on my knees
Please be here when I wake up tomorrow

I never felt like this before
My love is flowing out for sure
Your lips upon my skin
Come out and let me in now
Never thought I’d beg like this for more

These days I wonder how I’m gonna make it tomorrow
In these ways I’m praying there’s no need for sorrow
These days I wonder what will come of tomorrow
These ways I’ll have to beg if I want to borrow
Your love, here I’m on my knees
Please be here when I wake up tomorrow

Speaking of the song to Rolling Stone, Nielsen commented: « This song always reminds me of a sultry David Bowie song. I liked it from the first time we attempted to do it. It’s just a moody, interesting piece with some heavy guitars in the middle. »

In an interview with Rock Cellar, Zander spoke of the song and his vocal performance on it: « I sort of conjured [Bowie’s] style up in mind on the song. Even though I don’t sound exactly like Bowie, it was in my mind while I was doing the song, which creates a fresh kind of new thing. »