Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] mysql/mariadb



john abreau writes:
> OK, I gave it a try and it didn't work.

> The following got it working. FYI, mysql --version shows

>     mysql  Ver 15.1 Distrib 10.1.21-MariaDB, for Linux (x86_64) using
> EditLine wrapper

> sudo systemctl stop mariadb
> sudo mysqld_safe &
> mysql -u root
>     set password for 'root'@'localhost' = password('EXAMPLE') ;
>     \q
> sudo kill $( sudo cat /var/run/mariadb/mariadb.pid )
> sudo systemctl start mariadb

thanks, did that and got in using mysql -u root -p
whooooeee!
then:

MariaDB [(none)]> grant all on *.* to moylan_moy identified by 'xxxxxxxxx';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> show grants for moylan_moy;
+--------------------------------------------------------------------------------------------------------------------+
| Grants for moylan_moy@%                                                                                            |
+--------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'moylan_moy'@'%' IDENTIFIED BY PASSWORD '*4C746C6A35DE6C965E5BD9B4040AA0D47D47E604' |
+--------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> quit
Bye
moylan ~[285] mysql -u moylan_moy -p
Enter password:
ERROR 1045 (28000): Access denied for user 'moylan_moy'@'localhost' (using password: YES)

tried it several times, no typos -- any thoughts?

ole dan

j. daniel moylan
84 harvard ave
brookline, ma 02446-6202
617-777-0207 (cel)
jdm at moylan.us
www.moylan.us
[no html pls]



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org