1

WAMP最新バージョンを実行しています

すべてが大丈夫でした.......

phpMyAdmin を開き、ユーザーとユーザーのパスワードを追加しました

認証タイプをCookieに設定しないと、phpMyAdminにアクセスできません

次に、ユーザー名とパスワードなしでログインできます.....しかし、パスワードがあります....

また、MySQL コンソールもパスワードなしでログインできるようになりました....

私は一体何をしたのですか?

PHPconfig.iniは次のようになります。

<?php

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'USERNAME';
$cfg['Servers'][$i]['password'] = 'PASSWORD';
$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';


?>

次の MySQL ini ファイルは次のようになります。

# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:\mysql\data) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password   = MYPASSWORD 
port    = 3306
socket  = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[wampmysqld]
port        = 3306
socket      = /tmp/mysql.sock
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.5.24
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.5.24/data

文字通り、phpMyAdminを開いて新しいユーザーを追加しただけです

私がする必要があるのは、phpMyAdminから両方のユーザーを削除することです

それから

完全な権限とパスワードを持つユーザーを追加し、phpMyAdmin config.ini ファイルの内容と一致させます

これはすべて mysql コマンド コンソールから実行できるはずですが、コマンドに関するヘルプが必要です。

ユーザーを追加して、その情報をphpMyAdmin config.iniファイルに入れることができれば、そこに入るだけで、必要なものを変更できます。


今日正午に SQL を復元しましたが、これで問題は解決しましたが、最初にこの問題が発生した理由は、アクセス アプリケーション データベースを SQL にロードしようとして、アクセス権がないと言われ続けたためです。ただし、同じ資格情報でphpMyAdminにログインすると、すべて問題ありません。

4

0 に答える 0