<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=4808&amp;type=atom" />
	<updated>2020-09-16T15:20:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=4808</id>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28220#p28220" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>В config.inc.php укажите root вместо учетной записи pma. Но предварительно попробуйте сбросить кеш браузера, возможно это тоже влияет.</p></blockquote></div><p>Всё, спасибо, ошибок не осталось.</p>]]></content>
			<author>
				<name><![CDATA[Pavl]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=11876</uri>
			</author>
			<updated>2020-09-16T15:20:23Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28220#p28220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28219#p28219" />
			<content type="html"><![CDATA[<p>В config.inc.php укажите root вместо учетной записи pma. Но предварительно попробуйте сбросить кеш браузера, возможно это тоже влияет.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2020-09-16T12:34:46Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28219#p28219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28218#p28218" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Попробуйте так.<br /></p><div class="codebox"><pre><code>FLUSH PRIVILEGES;
GRANT ALL ON *.* TO root@localhost IDENTIFIED BY &#039;password&#039; WITH GRANT OPTION;</code></pre></div></blockquote></div><p>Частично проблема решилась - и на сайт переходится, и к базе данных есть доступ. Но, в phpMyadmin остаётся такая ошибка:</p><p>mysqli::real_connect(): (HY000/1045): Access denied for user &#039;pma&#039;@&#039;localhost&#039; (using password: NO)<br />Ошибка при указании соединения для controluser в конфигурации.<br />Эту ошибку, также решать или, как-то иначе?</p>]]></content>
			<author>
				<name><![CDATA[Pavl]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=11876</uri>
			</author>
			<updated>2020-09-16T12:25:20Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28218#p28218</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28217#p28217" />
			<content type="html"><![CDATA[<p>Попробуйте так.<br /></p><div class="codebox"><pre><code>FLUSH PRIVILEGES;
GRANT ALL ON *.* TO root@localhost IDENTIFIED BY &#039;password&#039; WITH GRANT OPTION;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2020-09-16T07:29:08Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28217#p28217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28216#p28216" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Похоже удалена запись пользователя root@localhost с пустым паролем. Создайте ее в phpMyadmin с привилегиями Grant.</p></blockquote></div><p>Знаю два варианта, как это можно сделать.<br />1й вариант - sql-запрос, а именно:</p><div class="codebox"><pre><code>CREATE USER &#039;root&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;&#039;</code></pre></div><p>Получается ответ:</p><p>#1290 - The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement</p><p>2й вариант - через вкладку &quot;Привилегии&quot;. Но, так как в phpMyadmin есть сообщение &quot;У вас нет прав администрировать пользователей!&quot;, то и кнопки &quot;Добавить нового пользователя&quot;, - тоже нет.</p><p>Может быть, ещё можно, как-то это сделать?</p>]]></content>
			<author>
				<name><![CDATA[Pavl]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=11876</uri>
			</author>
			<updated>2020-09-15T23:45:20Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28216#p28216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28215#p28215" />
			<content type="html"><![CDATA[<p>Похоже удалена запись пользователя root@localhost с пустым паролем. Создайте ее в phpMyadmin с привилегиями Grant.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2020-09-15T21:46:58Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28215#p28215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ответ MySQL:  Соединение невозможно! Неверные настройки.]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=28214#p28214" />
			<content type="html"><![CDATA[<p>Добрый день!<br />На сайте расположенном на локальном сервере XAMPP попробовал использовать одно приложение. Что-то пошло не так и мне пришлось удалить приложение. И я, как обычно, захожу на сайт. И тут в браузере появляется:</p><p>Warning: mysqli_connect(): (HY000/1045): Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO) in C:\xampp\htdocs\myshop.local\config\db.php on line 15<br />Connection failed: Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO)</p><p>А при заходе в phpMyadmin:</p><p>Ответ MySQL: <br />Соединение невозможно! Неверные настройки.<br /> mysqli::real_connect(): (HY000/1045): Access denied for user &#039;pma&#039;@&#039;localhost&#039; (using password: NO)<br /> Ошибка при указании соединения для controluser в конфигурации.<br /> mysqli::real_connect(): (HY000/1045): Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO)<br /> phpMyAdmin не смог установить соединение с сервером MySQL. Проверьте хост, имя пользователя и пароль установленные в конфигурационном файле config.inc.php и удостоверьтесь, что они соответствуют данным полученным от администратора сервера MySQL.</p><p>Зайти на сайт и в phpMyadmin можно, только вписав строку skip-grant-tables в блок [mysqld] файла my.ini.</p><p>Файл hosts:</p><div class="codebox"><pre><code>127.0.0.1 localhost
127.0.0.1 myshop.local
127.0.0.1 www.myshop.local</code></pre></div><p>Файл vhosts.conf:</p><div class="codebox"><pre><code>&lt;VirtualHost *:80&gt;
    ServerAdmin postmaster@myshop.local
    DocumentRoot &quot;/xampp/htdocs/myshop.local/www&quot;
    ServerName myshop.local
    ServerAlias www.myshop.local
    ErrorLog &quot;logs/myshop.local-error.log&quot;
    CustomLog &quot;logs/myshop.local-access.log&quot; common
&lt;/VirtualHost&gt;</code></pre></div><p>Файл config.inc.php:</p><div class="codebox"><pre><code>/* Authentication type and info */
$cfg[&#039;Servers&#039;][$i][&#039;auth_type&#039;] = &#039;config&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;user&#039;] = &#039;root&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;password&#039;] = &#039;&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;extension&#039;] = &#039;mysqli&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;AllowNoPassword&#039;] = true;
$cfg[&#039;Lang&#039;] = &#039;&#039;;

/* Bind to the localhost ipv4 address and tcp */
$cfg[&#039;Servers&#039;][$i][&#039;host&#039;] = &#039;127.0.0.1&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;connect_type&#039;] = &#039;tcp&#039;;

/* User for advanced features */
$cfg[&#039;Servers&#039;][$i][&#039;controluser&#039;] = &#039;pma&#039;;
$cfg[&#039;Servers&#039;][$i][&#039;controlpass&#039;] = &#039;&#039;;</code></pre></div><p>Файл db.php в котором происходит подключение к базе данных myshop:</p><div class="codebox"><pre><code>$servername = &quot;localhost&quot;;
$username = &quot;root&quot;;
$password = &quot;&quot;;
$dbname = &quot;myshop&quot;;

function connect(){
    $conn = mysqli_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;, &quot;myshop&quot;);
    if (!$conn) {
        die(&quot;Connection failed: &quot; . mysqli_connect_error());
    }
    mysqli_set_charset($conn, &quot;utf8&quot;);
    return $conn;
}</code></pre></div><p>Учётные записи в phpMyadmin:<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; Имя пользователя&nbsp; &nbsp; Имя хоста&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Пароль&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Глобальные привилегии &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Grant&nbsp; &nbsp; <br />&nbsp; &nbsp; Любой&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Нет&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;USAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Нет&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; pma&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localhost&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Нет&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; USAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Нет&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 127.0.0.1&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Да&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ALL PRIVILEGES&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Да&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::1&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Нет&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL PRIVILEGES&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Да&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </p><p>Привилегии в phpMyadmin у базы данных myshop:</p><p>&nbsp; &nbsp; Имя пользователя&nbsp; &nbsp; Имя хоста&nbsp; &nbsp; Тип&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Привилегии&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Grant<br />&nbsp; &nbsp; root&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 127.0.0.1 глобальный&nbsp; &nbsp;ALL PRIVILEGES&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Да&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; root&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;глобальный&nbsp; &nbsp;ALL PRIVILEGES&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Да&nbsp; &nbsp; </p><br /><br /><p>В чём ошибки и как вернуть прежнюю работу сайта с прежними настройками базы данных ($servername = &quot;localhost&quot;;<br />$username = &quot;root&quot;;<br />$password = &quot;&quot;;<br />$dbname = &quot;myshop&quot;;)</p>]]></content>
			<author>
				<name><![CDATA[Pavl]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=11876</uri>
			</author>
			<updated>2020-09-15T20:43:32Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=28214#p28214</id>
		</entry>
</feed>
