B
B
Bernard Krapivin2016-08-07 21:04:52
linux
Bernard Krapivin, 2016-08-07 21:04:52

How to change root password in phpmyadmin on ubuntu?

How to change root password in phpmyadmin to ubuntu via terminal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sisyukin, 2016-08-07
@Bobrodon

if there was no password before
mysqladmin -u root password '1234'
if there was a password.
Stop MySQL:
/etc/init.d/mysql stop Start
in unchecked mode:
/usr/sbin/mysqld --skip-grant-tables &
Connect as root without password:
mysql
Select active database:
use mysql;
Update the password:
mysql> update user set Password=PASSWORD('new password') WHERE User='root';
mysql> flush privileges;
Shut down mysqld:
fg
"Ctrl+c"
Start MySQL in normal mode.
/etc/init.d/mysql start
INFA
there is a lot to learn here!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question