Galère à n'en plus finir avec l'accès à mysql
RésoluToufoutoufou -
Là je craque, je me donne une dernière chance après j'arrête les frais.
Depuis plusieurs jours j'essais d'avoir le guide TV sur mythtv, sans succès, jusqu'à tout à l'heure où j'ai lu sur ce forum :
http://mythtv-fr.info/index.php?file=Forum
qu'une solution existait mais pour ça il fallait reinstaller mythtv. Autant dire que j'etais angoissé à l'idée de le faire. Et pour cause, maintenant, je ne peux plus accéder à mysql. J'ai ce message quand je fais la commande "mysql -u root mysql" :
mythtv@PC-acer-ubuntu:~$ mysql -u root mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
J'ai suivi ce tuto qui donne des possibilités pour régler le problème :
http://help.ubuntu.com/...
Malheureusement, ça ne change rien
Par contre avec phpmyadmin, je peux me connecter ??? allez y comprendre quelquechose. Bref, mythtv-setup est inutilisable et je ne peux donc pas configurer mythtv.
Je suis dégouté
Peut-être que quelqu'un à une procedure pour régler ce problème.
J'ai vraiment pas de chance , que ce soit freevo ou mythtv, il manque toujours quelquechose pour que cela fonctionne bien
Configuration: Linux Firefox 2.0.0.2
- Mysql 1045
- Enter password: error 1045 (28000): access denied for user 'root'@'localhost' (using password: yes) - Meilleures réponses
- Error 1045 (28000): access denied for user 'root'@'localhost' (using password: y es) - Meilleures réponses
- Mysqli_real_connect(): (HY000/1045): Accès refusé pour l'utilisateur: 'root'@ - Forum MySQL
- MySQL : 1045 access denied for root - Forum Windows
- Mysql community server - Télécharger - Bases de données
- Erreur mysql - Forum MySQL
- Mysql error in file: /engine/classes/mysql.php at line 53 ✓ - Forum Réseaux sociaux
10 réponses
Le problème central est l’erreur d’accès MySQL lors de l’exécution de mysql -u root mysql, empêchant l’utilisation de mythtv-setup et l’accès à la base de données locale. Des solutions essentielles incluent l’arrêt du service MySQL, le démarrage avec --skip-grant-tables, puis la connexion en root et la réinitialisation du mot de passe, suivie d’un redémarrage standard. D'autres interventions évoquent le paramétrage du fichier de configuration, notamment la ligne bind-address qui peut bloquer les connexions externes, et nécessiter sa modification ou son commentaire. Une vérification finale suggère que PHPMyAdmin peut rester accessible même lorsque l’accès en ligne de commande est perturbé, et que la réinitialisation du mot de passe MySQL rétablit l’accès via mythtv-setup.
# /etc/init.d/mysql stoplami20j
Shutting down MySQL..
# mysqld_safe --skip-grant-tables --skip-networking &
[1] 4983
# Starting mysqld daemon with databases from /var/lib/mysql
# mysql mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.21-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> update user set password=password('aaaaaaaa') where user="root" and host="localhost";
Query OK, 0 rows affected (0,00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
mysql> exit
Bye
# mysqladmin shutdown
STOPPING server from pid file /var/lib/mysql/debian.pid
030811 14:38:40 mysqld ended
[1]+ Done /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --skip-networking
# /etc/init.d/mysql start
Starting MySQL
# mysql -u root -p
acer@PC-acer-ubuntu:~$ sudo -s Password: root@PC-acer-ubuntu:~# /etc/init.d/mysql stop * Stopping MySQL database server mysqld [ ok ] root@PC-acer-ubuntu:~# mysqld_safe --skip-grant-tables --skip-networking & [1] 15279 root@PC-acer-ubuntu:~# Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[15343]: started root@PC-acer-ubuntu:~# mysql mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.24a-Debian_9-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> update user set password=password('yelena03') where user="root" and host="localhost"; Query OK, 1 row affected (0.06 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> exit Bye root@PC-acer-ubuntu:~# mysqladmin shutdown STOPPING server from pid file /var/run/mysqld/mysqld.pid mysqld_safe[15404]: ended [1]+ Done mysqld_safe --skip-grant-tables --skip-networking root@PC-acer-ubuntu:~# /etc/init.d/mysql start * Starting MySQL database server mysqld [ ok ] * Checking for corrupt, not cleanly closed and upgrade needing tables. root@PC-acer-ubuntu:~# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) root@PC-acer-ubuntu:~# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 5.0.24a-Debian_9-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>"acces denied" correspond à un mot de passe vide ensuite j'ai refait la commande en mettant le mot de passe 'aaaaa' (pas "a" mais un mot de passe à moi et là ça marche.
Je vais essayer maintenant de reinstaller mythtv ...