Ошибка пароля при конфигурации mysql

I recently uninstalled and reinstalled MySQL (on Windows 7) using the installer. When I try to set up the MySQL Server, it won’t let me continue unless I enter the «current» root password??? I don’t understand how there can be a current root password if I completely uninstalled and reinstalled the program.

I’ve tried with a blank password as well as every password I can possibly think of that I would have used and nothing works. Google is completely unhelpful as every result I’ve found either refers to a «homebrew» installation, whatever that is, or refers to installations on Linux. Is there some folder of config files that the uninstallation refuses to delete that I need to remove manually? Or am I missing something else?

image of problem because SO won't let you have pictures until you're popular

Derviş Kayımbaşıoğlu's user avatar

asked Jan 29, 2019 at 19:05

Jess's user avatar

3

After uninstallation process, please check following directories if it exists and remove:

  • C:Program FilesMySQL
  • C:Program Files (x86)MySQL
  • C:ProgramDataMySQL
  • C:Users[User-Name]AppDataRoamingMySQL

PS: Please keep in mind that If you have multiple MySql Instances installed on your workstation, you need to go into each directory and delete only the relevant instance.

answered Jan 29, 2019 at 19:33

Derviş Kayımbaşıoğlu's user avatar

3

I too faced the same issue but the following worked for me:
Go to Control Panel >> Programs >> Programs and Features, select MySQL Server and click Uninstall.
Also uninstall the MySQL workbench, MySQL Installer Community, MySQL Router.
Then delete the files:

C:Program FilesMySQL
C:Program Files (x86)MySQL
C:ProgramDataMySQL
C:Users[User-Name]AppDataRoamingMySQL

Finally restart your system and install MySQL again.

Procrastinator's user avatar

answered Feb 19, 2022 at 12:11

Aparimita Swain's user avatar

1

In a fresh development machine, after installing MySQl 8.0.18 in Windows 10 64 bit, I hit this error and could not connect to MySql.
Nothing else worked.
Then I uninstalled the Mysql and deleted C:Program FilesMySQL and retried installing MySql 8.0.18 and while re-installing it asked to specify root user password.
After specifying the root password, I was able to connect.

answered Dec 22, 2019 at 10:27

Arvind Gupta's user avatar

I was also facing the same problem, i tried the same process and this works for me too. Also i uninstalled my MySQL installer, MySQL shell, MySQL workbench, MySQL server and all connectors and routers from my Control Panel>>Uninstall a program and after deleting everything. I tried this solution install MySQL again from the oracle website and everything worked fine.

answered Jan 24, 2022 at 15:37

093_ Sarwar Siddiqui's user avatar

when I was facing the same issue, I used «password» for root password, which is default for MySql.

answered Dec 10, 2022 at 16:59

sanket kushwaha's user avatar

Если вы пытались установить MySQL в новых версиях дистрибутива Ubuntu, то могли столкнутся с этой ошибкой при выполнении команды mysql_secure_installation или при попытке сменить пароль с помощью SQL команды ALTER  USER.

В этой статье мы разберем почему возникает такая ошибка, а также как исправить Your password does not satisfy the current policy requirements MySQL в вашей системе.

Почему возникает такая ошибка?

MySQL имеет плагин для проверки сложности паролей. Он по умолчанию отключен, но при выполнении mysql_secure_installation программа предлагает его включить и включает по умолчанию, если вы явно не отказались от этого. Этот плагин проверяет сложность пароля и не дает установить слишком слабые пароли. У плагина есть три политики требований к паролям:

  • LOW — самая легкая политика, она проверяет только длину пароля. Пароль должен быть не менее восьми символов.
  • MEDIUM — эта политика используется по умолчанию. Она требует чтобы пароль был не меньше 8 символов, содержал как минимум одну цифру, одну буквы верхнего и одну нижнего регистра, а также как минимум один спец символ, например восклицательный знак, собаку, подчеркивание и т д.
  • STRONG — эта политика добавляет к правилам из MEDIUM требование, чтобы слова из которых состоит пароль не содержались в словаре.

Скрипт mysql_secure_installation спрашивает какую политику надо активировать, после того как вы включили плагин Password Validation Plugin и по умолчанию предлагается именно политика MEDIUM:

Таким образом, если вы выберете все значения по умолчанию и потом попытаетесь указать пароль, который не соответствует требованиям, например, чаще всего это будет отсутствие спец символа, то вы получите ошибку «Your password does not satisfy the current policy requirements».

Как исправить ошибку?

Самый простой способ исправить эту ошибку — это указать пароль, который будет соответствовать требованиям политики. Для политики MEDIUM это может быть такой пароль: IePhi4A!. Но это не всегда подходит. Поэтому ещё вы можете понизить политику до LOW, для того чтобы требования к паролю были не такими строгими. Для этого выполните подключитесь к серверу баз данных MySQL:

mysql -u root -p

Или если в системе выбрана авторизация не по паролю:

sudo mysql

Затем выполните такой запрос:

SET GLOBAL validate_password.policy=LOW;

После этого вы можете поменять пароль на нужный. Ещё один вариант — полностью отключить плагин валидации паролей. Для этого выполните такой SQL запрос:

UNINSTALL COMPONENT 'file://component_validate_password';

После этого валидация паролей будет полностью отключена и вы сможете установить желаемый пароль.

Выводы

В этой статье мы рассмотрели как исправить ошибку связанную с валидацией пароля MySQL. Как видите это довольно не сложно.

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Creative Commons License

Статья распространяется под лицензией Creative Commons ShareAlike 4.0 при копировании материала ссылка на источник обязательна .

Об авторе

Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.

This might seem redundant but I was unable to find a correct solution.

I was unable to login to mysql using the mysql console.It is asking for a password and I have no clue what I actually entered.(Is there a way to get the password or change it?)
This is how my config.inc look.

When I try to open phpmyadmin I get this error(#1045 — Access denied for user ‘root’@’localhost’ (using password: YES))

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
 $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';


/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';


?>

I have tried to uninstall( Plus Deleted all the related files) WAMP and reinstall.It didn’t help either.
While reinstalling WAMP server it is not asking for any username password stuff I don’t know why.
Any help is highly appreciated.

asked May 30, 2013 at 20:54

Prakash's user avatar

Основатель и администратор сайта losst.ru, увлекаюсь открытым программным обеспечением и операционной системой Linux. В качестве основной ОС сейчас использую Ubuntu. Кроме Linux, интересуюсь всем, что связано с информационными технологиями и современной наукой.

This might seem redundant but I was unable to find a correct solution.

I was unable to login to mysql using the mysql console.It is asking for a password and I have no clue what I actually entered.(Is there a way to get the password or change it?)
This is how my config.inc look.

When I try to open phpmyadmin I get this error(#1045 — Access denied for user ‘root’@’localhost’ (using password: YES))

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
 $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';


/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';


?>

I have tried to uninstall( Plus Deleted all the related files) WAMP and reinstall.It didn’t help either.
While reinstalling WAMP server it is not asking for any username password stuff I don’t know why.
Any help is highly appreciated.

asked May 30, 2013 at 20:54

Prakash's user avatar

4

I first changed the root password running mysql at a prompt with

mysql -u root -p

Update password:

UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';

Edited line in the file config.inc.php with the new root password:

$cfg['Servers'][$i]['password'] = 'MyNewPass'

Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat)

and got phpMyAdmin to work!

EDIT 2017: for MySQL≥5.7 use authentication_string in place of Password (see this answer):

`UPDATE mysql.user SET authentication_string=PASSWORD('MyNewPass') WHERE User='root';

`

Ritesh's user avatar

Ritesh

4,6446 gold badges27 silver badges40 bronze badges

answered Oct 15, 2013 at 11:16

user2314737's user avatar

user2314737user2314737

26.7k18 gold badges102 silver badges113 bronze badges

3

The problem was I have 2 instances of Mysql installed and I didn’t know the password for both instances.Just check if port 80 is used by any of the programs.
This is what I did

1.Quit Skype because it was using port 80.(Please check if port 80 is used by any other program).

2.Search for Mysql services in task manager and stop it.

3.Now delete all the related mysql files.Make sure you delete all the files.

4.Reinstall

radbyx's user avatar

radbyx

9,30221 gold badges84 silver badges127 bronze badges

answered Aug 8, 2013 at 20:19

Prakash's user avatar

PrakashPrakash

7,7464 gold badges47 silver badges44 bronze badges

Well, there are many solutions already given above. If there are none of them works, maybe you should just try to reset your password again to ‘root’ as described here, and then reopen http://localhost/phpMyAdmin/ in other browser. At least this solution works for me.

answered Oct 27, 2013 at 20:18

yunhasnawa's user avatar

yunhasnawayunhasnawa

8151 gold badge14 silver badges30 bronze badges

This worked for me.
In your config file

$cfg['Servers']['$i']['password'] = 'yourpassword';

In your mysql shell, login as root

mysql -u root

change your password or update if you’ve forgotten the old one

UPDATE mysql.user SET Password=PASSWORD('yourpassword') WHERE User='root';

stop and restart your mysql server from the xampp control panel. phpmyadmin can login to see your databases

answered Jul 1, 2018 at 23:43

Timi Jegede's user avatar

mysql.exe->Run as administrator or go to following path C:wampbinmysqlmysql5.5.24bin and than right click on mysql.exe go to properties and than select tab as Compatibility and see the bottom of dialog box in privilege level and just check the Run this program as an administrator and then click apply ok.finished now you open success phpMyadmin. bye

answered Aug 5, 2013 at 15:40

arokiya's user avatar

  1. mysql -u root -p
  2. UPDATE mysql.user SET Password=PASSWORD('mypass') WHERE User='root';
  3. Flush the privileges: FLUSH PRIVILEGES;
  4. Exit by typing: Exit
  5. Edited line in the file config.inc.php with the new root password: $cfg['Servers'][$i]['password'] = 'mypass'

  6. be succss

answered Dec 29, 2014 at 9:08

ramin rostami's user avatar

1

Go to ‘config.inc.php’. Write your password over here — $cfg['Servers'][$i]['password'] =''

answered Jan 21, 2015 at 17:42

halkujabra's user avatar

halkujabrahalkujabra

2,8443 gold badges25 silver badges35 bronze badges

This process is quite simple in correcting the the error. What is happening is a failure to connect to phpMyAdmin. In order to fix the problem you simply need to provide the correct password to the system phpMyAdmin configuration file located in appsphpMyadminconfig.ini.php
1. the root should already be set as user
2. Insert the password between ‘ ‘ and that it.

If you still have problems then this means that the user name and /or the password need to be updated or inserted into the DB. to do this use the command line tool and do an update.

UPDATE mysql.user SET Password=PASSWORD(‘Johnny59 or whatever you want to use’) WHERE User=’root’;

answered Jan 26, 2015 at 2:52

Saturminus Combie's user avatar

Go to config.inc.php, find $cfg['Servers'][$i]['password'] and remove any password provided, i.e change $cfg['Servers'][$i]['password'] = 'password'; with $cfg['Servers'][$i]['password'] = '';

Now you can launch phpMyAdmin

Selecting Users menu from phpMyAdmin, select the root user and click Edit previlidges.
Now scroll down to Change Password area, switch between No Password and Password to provide your new password.
that’s it.

answered Jun 20, 2015 at 8:52

Hussain Rahimi's user avatar

I had the same error today. I had installed Djangostack and when I checked my task manager there were two instances of mysqld running. I checked one was for wamp server and the other was for django stack. I ended the one for django stack, restarted all services in wamp server and I was able to access phpmyadmin

answered Jun 22, 2015 at 9:15

Ngeno's user avatar

NgenoNgeno

213 bronze badges

after installation i started wamp and i was asked for user and pass which were already set on default (user:admin pass: dots), and that was wrong with a message from your topic. Than, i just entered:

Username: root 
Password: (leave it empty)

and it worked for me!!

answered Aug 2, 2016 at 11:39

fantja's user avatar

0

  1. Go to C:xamppphpMyAdmin

  2. Edit the config.inc.php file

  3. Replace $cfg['Servers'][$i]['auth_type'] = 'config'; by
    $cfg['Servers'][$i]['auth_type'] = 'cookie';

For now on the PHPMyAdmin will ask you for your password, no more error.

ata's user avatar

ata

3,3205 gold badges20 silver badges31 bronze badges

answered Feb 20, 2018 at 20:35

Jean Duclos's user avatar

Try the following code:

$cfg['Servers'][$i]['password'] = '';

if you see Password column field as ‘No’ for the ‘root’ user in Users Overview page of phpMyAdmin.

рüффп's user avatar

рüффп

5,14334 gold badges67 silver badges113 bronze badges

answered Oct 24, 2013 at 9:17

Peris's user avatar

PerisPeris

293 bronze badges

with MariaDb, above solutions doesn’t works.

Use (exemple below with ubuntu 16.04 and mariadb-server Distrib 10.0.28):

    sudo mysql_secure_installation
    …
    Change the root password? [Y/n] 
    New password: 

answered Jan 26, 2017 at 10:45

bcag2's user avatar

bcag2bcag2

1,9281 gold badge15 silver badges31 bronze badges

I have encountered similar mistakes, and later found that my password is wrong.

answered Aug 14, 2017 at 1:28

管浩浩's user avatar

管浩浩管浩浩

631 silver badge4 bronze badges

For UNIX, try this. It worked for me:

  1. connect MySQL use Navicat Premium with inital root/»password»
  2. UPDATE mysql.user
    SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N'
    WHERE User = 'root' AND Host = 'localhost';
    FLUSH PRIVILEGES;
  3. restart MySQL

Sebastian Brosch's user avatar

answered Feb 17, 2017 at 2:37

Aaron's user avatar

AaronAaron

191 bronze badge

1

First you have to go config.inc.php file then change the following instruction

$cfg['Servers'][$i]['user'] ='';
$cfg['Servers'][$i]['password'] =''; 

or

enter image description here

answered Aug 23, 2017 at 15:30

Mahedi Hasan Durjoy's user avatar

1

If you arrived here because you can’t log into your phpMyAdmin, then try the root password from your Mysql instead of the password you put during phpMyAdmin installation.

answered Oct 10, 2017 at 11:38

Kaizoku Gambare's user avatar

Kaizoku GambareKaizoku Gambare

3,0633 gold badges29 silver badges41 bronze badges

Just now I have this situation and I have tried this way which is very easy.

First stop your mysql service using this command:

service mysql stop

and then just again start your mysql service using this command

service mysql start

I hope it may help others… :)

STiLeTT's user avatar

STiLeTT

1,02310 silver badges23 bronze badges

answered Dec 1, 2017 at 10:51

Sachin Shah's user avatar

Sachin ShahSachin Shah

4,4543 gold badges23 silver badges50 bronze badges

After I updated my MySql, I was getting the same error message.
It turned out that after installing a different version on MySql, inside the my.ini, the port was different. Previous MySql version had port 3306 but the new one have port 3308.
Check your MySql my.ini, if it is different use the port from .ini in your connection.

answered Jan 9, 2020 at 23:52

Guntar's user avatar

GuntarGuntar

4598 silver badges23 bronze badges

php artisan serve 

this command get the env contents for the first time and if you update .env file need to restart it.

in my case my username and dbname is valid and php artisan migrate worked

but need to cntrl+c , to cancel php artisan serve , and run it again

php artisan serve

answered Feb 19, 2020 at 17:51

saber tabatabaee yazdi's user avatar

Check the name of Environment Variable

Case with me:

  • I was using sqlalchemy in a python-flask project and got this issue.
  • IDE used: PyCharm
  • In my config.py file I had setup SQLALCHEMY_DATABASE_URI as:
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URI")

Mistake I did (it was a silly mistake 😅)

  • While setting evironment_variables in PyCharm, I did:
SQLALCHEMY_DATABASE_URI=<my_db_uri>

Solution

  • I changed the above to:
DATABASE_URI=<my_db_uri>

Namaste 🙏

answered Apr 6, 2021 at 6:34

Deepam Gupta's user avatar

Deepam GuptaDeepam Gupta

2,2981 gold badge29 silver badges33 bronze badges

In the my.ini file in C:xamppmysqlbin, add the following line after the [mysqld] command under #Mysql Server:

skip-grant-tables

This should remove the error 1045.

Nander Speerstra's user avatar

answered Dec 20, 2017 at 7:23

Abhikarsh's user avatar

1

if multiple myslq running on same port no
enter image description here

Right click on wamp and test port 3306
if its wampmysqld64 its correct else change port no and restart server

radbyx's user avatar

radbyx

9,30221 gold badges84 silver badges127 bronze badges

answered Jun 16, 2018 at 12:00

Sachins's user avatar

SachinsSachins

311 silver badge7 bronze badges

Иногда во время инсталляции MySQL пользователь не задает пароль root, тогда в качестве авторизации используется метод unix_socket. Если используется именно авторизация, в качестве пользователя root сможет авторизоваться только суперпользователь системы или пользователь с правами sudo.

Во время использования mysql_secure_installation будет предпринята попытка изменить пароль, в таком случае от mysql вы получите ошибку SET PASSWORD has no significance for user ‘root’@’localhost’. Как ее решить и устранить, расскажем дальше.

Устраняем ошибку

Полное название ошибки выглядит следующим образом:

SET PASSWORD has no significance for user ‘root’@’localhost’ as the authentication method used doesn’t store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters.

Переводится ошибка как:

Выполнять метод SET PASSWORD для ‘root’@’localhost’ нет смысла потому что выбранный метод авторизации не поддерживает сохранение данных авторизации. Если вы хотите изменить параметры авторизации используйте ALTER USER.

Способ авторизации unix_socket не сохраняет пароли, он выполняет авторизацию не посредством пароля, он проверяет соответствие конкретного пользователя условиям суперпользователя. При этом просто пропустить настройку пароля root (если он не был задан) у пользователя нет возможности. Вот почему программа не позволяет вам пройти дальше. Исправить проблему можно, выполнив подключение к MySQL.

Также нужно поменять метод авторизации и заодно пароль:

sudo mysql

В окружении SQL нужно исполнить такую команду:

ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘ваш_пароль’;

Закрываем клиент MySQL командой:

exit;

После нужно запустить mysql_secure_installation, ввести пароль root. Дальше можно без проблем закончить настройку. Обращаем внимание, что после этого вы сможете подключится к mysql, используя sudo без пароля, поскольку активирован метод авторизации по паролю. Для возвращения прежних настроек после выполнения mysql_secure_installation выполните подключение к MySQL.

Используем пароль и выполняем:

ALTER USER ‘root’@’localhost’ IDENTIFIED WITH auth_socket;

Вот и все — инструкция завершена. 

Содержание

  1. Как решить ошибку MySQL 1819 (HY000) в Linux
  2. Как изменить политику проверки паролей MySQL
  3. Заключение

При создании пользователя MySQL со слабым паролем вы можете столкнуться с ошибкой «MySQL ERROR 1819 (HY000): Ваш пароль не удовлетворяет текущим требованиям политики безопасности«. Технически это не ошибка, а уведомление о том, что вы используете пароль который не соответствует рекомендуемым требованиям политики паролей.

Сказать простыми словами, вы используете слабый пароль, который можно легко. Встроенный механизм безопасности не позволяет пользователям создавать слабые пароли. Которые могут сделать вашу базу данных не безопасной.

Я столкнулся с ошибкой при создании пользователя.

mysql> create user ‘tecmint’@’localhost’ IDENTIFIED BY ‘mypassword’;

Ошибка MySQL 1819 (HY000)

Ошибка MySQL 1819 (HY000)

Это не удивительно, что пароль очень слабый и может представлять угрозу безопасности.

Как решить ошибку MySQL 1819 (HY000) в Linux

База данных MySQL поставляется с плагином validate_password этот плагин применяет политику проверки пароля. Существует 3 уровня политики проверки пароля, которые применяются плагином.

  • Низкий уровень: позволяет пользователям устанавливать пароль из 8 или менее символов.
  • Средний: позволяет пользователям устанавливать пароль из 8 или менее символов, но должны быть буквы и специальные символы.
  • Сильный: позволяет пользователям устанавливать пароль, который имеет все атрибуты пароля среднего уровня. Но так же  включается файл словаря простых паролей.

По умолчанию политика паролей имеет значение Средний. Вы можете проверить уровень политики паролей, выполнив команду:

$ SHOW VARIABLES LIKE ‘validate_password%’;

Проверка Политики Паролей Mysql

Проверка Политики Паролей Mysql

Ввели команду и получили пустую таблицу, то плагин не включен.

Чтобы включить плагин validate_password, выполните следующие команды.

mysql> select plugin_name, plugin_status from information_schema. plugins where plugin_name like ‘ validate%’;

mysql> установить плагин validate_password soname ‘validate_password.so’;

Чтобы проверить, что плагин активирован, выполните команду.

mysql> select plugin_name, plugin_status from information_schema. plugins where plugin_name like ‘ validate%’;

Вы должны получить результат, показанный ниже:

Включение Политики Паролей Mysql

Включение Политики Паролей Mysql

Чтобы устранить ошибку MySQL ERROR 1819 (HY000), необходимо установить политику проверки пароля на самый низкий уровень. Я понимаю, что это звучит нелогично. Так как это создаст возможность для установки слабых паролей. Которые в свою очередь могут привести к тому, что ваша база данных будет скомпрометирована хакерами.

Но если вы все еще хотите сделать это, то вот способ отключения.

Как изменить политику проверки паролей MySQL

Чтобы устранить ошибку MySQL ERROR 1819 (HY000), установите более низкую политику проверки пароля. Введите одну из команд в терминал:

mysql> SET GLOBAL validate_password_policy=LOW;

Или

mysql> SET GLOBAL validate_password_policy=0;

После этого проверьте как уровень политики проверки пароля установлен.

$ SHOW VARIABLES LIKE 'validate_password%';

Изменение Политики Паролей Mysql

Изменение Политики Паролей Mysql

Теперь вы можете назначить слабый пароль в соответствии с вашими пожеланиями.

mysql> create user ‘tecmint’@’localhost’ IDENTIFIED BY ‘mypassword’;

Чтобы вернуться к «среднему» уровню политики паролей, просто введите команду:

mysql> SET GLOBAL validate_password_policy=MEDIUM;

Заключение

Лично я бы не рекомендовал устанавливать политику паролей низкого уровня. Независимо от того являетесь ли вы обычным пользователям или пользователем базы данных.Рекомендую всегда устанавливать надежный пароль. Который содержит минимум 8 символов, имеет прописные и строчные буквы, а так же имеет спецсимволы.

Данное руководство предназначено для тех, кто хочет знать из-за чего появляется эта ошибка. Но все же мы рекомендуем вам всегда устанавливать надежный пароль.

,Если у вас при установки MySQL на Ubuntu возникли проблемы, рекомендую эту статью к прочтению  Установка Ubuntu MySQL

Понравилась статья? Поделить с друзьями:
  • Ошибка пароля или логина gmail
  • Ошибка пароля в плей маркете
  • Ошибка пароля в wp config
  • Ошибка пароля администратора роутера xiaomi
  • Ошибка пароль не может быть сброшен