0

こんにちは、mysql でパスワードを設定するためのオンライン tut をたどろうとしましたが、これは回復できないエラーにつながりました。

1) phpMyAdmin-2.11.10 これにより、下にメッセージが表示されたログイン ボックスが表示されます: mcrypt をロードできません。私はワンプで有効にし、libmcrypt.dllをwindowsとwindows\system32フォルダーに入れました。それでもメッセージが表示されます。パスなしでログインボックスにルートを入力すると、2番目のエラーが発生します。

2) mysql エラー

1130 - ホスト 'localhost' は、この MySQL サーバーへの接続を許可されていません

さまざまな修正を試みましたが、何も機能していないようです。どんな助けにも感謝します。ありがとう

phpMyAdmin-2.11.10 mysql4.1.22 php4.4.7

phpmyadmin config.inc.php

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use scripts/setup.php
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.phpmyadmin.net>.
 *
 * @version $Id: config.sample.inc.php 12304 2009-03-24 12:56:58Z nijel $
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>
4

1 に答える 1

3

私の知る限り、Wamp には phpMyAdmin が既に構成されています。どのチュートリアルを使用しましたか?

ル:

これは root ユーザーですか、それとも他のアカウントですか? 私があなただったら、データ(ファイルとSQL)をバックアップし、新しいワンプインストール(チュートリアルのものではない最新バージョン)を行い、次のことを行います:

  • [スタート] -> [ファイル名を指定して実行] に移動し、cmd と入力します
  • cd コマンドを使用して、mysql.exe がインストールされている場所に移動します。

次のコマンドを使用します。

mysql>
mysql>update mysql.user SET password=password("newpassword") hit enter
mysql>where user="root"; hit enter
Query OK


mysql>Flush Privileges; hit enter
Query OK
mysql>quit hit enter
mysql>bye

次に、phpMyAdmin config.inc に移動して編集します。

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

WAMP サーバーを再起動します。これで問題ありません。

于 2011-06-05T12:41:22.983 に答える