SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Список вопросов ПечатьМетки: directadmin mysql mariadb

| RemiZOffAlex Создано: 2018-04-28 09:38:58.535032 Обновлено: 2018-04-28 09:38:58.535032 |
|---|
|
When connecting to the MySQL screens in DirectAdmin, if this error appears, that would indicated that the "da_admin" user has not been setup correctly. To resolve this do the following. systemctl stop mysqld For all the other versions of MySQL/MariaDB: service mysqld stop That should start up mysql without the need for a root password. Type the following to reset the password now mysql mysql -e "UPDATE mysql.user SET password=PASSWORD('rootpass') WHERE user='root'; FLUSH PRIVILEGES;" That will reset the root password for you. systemctl unset-environment MYSQLD_OPTS For all the other versions of MySQL/MariaDB type: killall -9 mysqld_safe
mysql -uroot -p Then press enter. You'll be asked for the password. Once in mysql, type: GRANT ALL PRIVILEGES ON *.* TO da_admin@localhost IDENTIFIED BY 'daadminpass' WITH GRANT OPTION; That should set the password for da_admin in mysql. user=da_admin
Ссылка
|