Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36171

[SOLVED] resetting mysql password on FC71

$
0
0
The mysql root password has been corrupted.
Unfortunately the previous threads are old ,
I've tried shutting down mysqld and restarting with
Code:

/usr/bin/mysqld_safe --skip-grant-tables &
after logging in with msql -u root
Tried
Code:

    -> UPDATE user SET Password=PASSWORD('zs42aiwetc');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql -u root mysql
UPDATE user SET Password=PASSWORD('zs42aiwetc')' at line 1
mysql> WHERE user=root;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE user=root' at line 1

I've also tried with the two entries as one command and get the same error message on syntax

and without the the brackets
Code:

[root@lap-g8jvm richard]# /usr/bin/mysqld_safe --skip-grant-tables &
[2] 3274
[root@lap-g8jvm richard]# 130303 21:07:42 mysqld_safe Logging to '/var/log/mysqld.log'.
130303 21:07:42 mysqld_safe A mysqld process already exists
mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.30 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> UPDATE user SET Password=PASSWORD 'zs42aiwetc'WHERE user=root;
ERROR 1046 (3D000): No database selected
mysql>

where have I gone wrong ???

mysql version

mysql Ver 14.14 Distrib 5.5.30, for Linux (x86_64) using readline 5.1
Thanks

Viewing all articles
Browse latest Browse all 36171

Trending Articles