Galère à n'en plus finir avec l'accès à mysql

Résolu/Fermé
pristella Messages postés 859 Date d'inscription samedi 23 octobre 2004 Statut Contributeur Dernière intervention 8 mai 2007 - 11 mars 2007 à 20:32
 Toufoutoufou - 26 juin 2019 à 15:33
bonjour,

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

10 réponses

lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567
Modifié le 6 sept. 2007 à 15:08
Essaie ça :

# /etc/init.d/mysql stop
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
lami20j
200
pristella Messages postés 859 Date d'inscription samedi 23 octobre 2004 Statut Contributeur Dernière intervention 8 mai 2007 74
12 mars 2007 à 21:35
voilà le resultat :

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 ...
0
lami20j Messages postés 21331 Date d'inscription jeudi 4 novembre 2004 Statut Modérateur, Contributeur sécurité Dernière intervention 30 octobre 2019 3 567 > pristella Messages postés 859 Date d'inscription samedi 23 octobre 2004 Statut Contributeur Dernière intervention 8 mai 2007
12 mars 2007 à 21:38
Maintenant on peut mettre résolu :-)
0