前提・実現したいこと
LAMP環境構築の勉強をしています。
CentOS7,PHP5.4.16, mysql Ver 8.0.27です。
ターミナルでmysqlへのログインはできるのですが、
phpMyadminからログインできません。
どうしたら解決するでしょうか?
発生している問題・エラーメッセージ
エラーメッセージ
config.inc.php(一部抜粋)
1<?php 2/** 3 * phpMyAdmin configuration file, you can use it as base for the manual 4 * configuration. For easier setup you can use "setup/". 5 * 6 * All directives are explained in Documentation.html and on phpMyAdmin 7 * wiki <http://wiki.phpmyadmin.net>. 8 */ 9 10/* 11 * This is needed for cookie based authentication to encrypt password in 12 * cookie 13 */ 14$cfg['blowfish_secret'] = 'W9xq9poQKK6nEnXb3hqcPAGdVzM8Bjz5'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 15 16/** 17 * Server(s) configuration 18 */ 19$i = 0; 20 21// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use 22// $cfg['Servers'][0]. You can disable a server config entry by setting host 23// to ''. If you want more than one server, just copy following section 24// (including $i incrementation) serveral times. There is no need to define 25// full server array, just define values you need to change. 26$i++; 27$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address 28$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port 29 30//$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket 31//$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') 32$cfg['Servers'][$i]['connect_type'] = 'socket'; 33$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock'; 34 35$cfg['Servers'][$i]['extension'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysqli') 36$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection 37 // (requires PHP >= 4.3.0) 38$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings 39 // (this user must have read-only 40$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user" 41 // and "mysql/db" tables). 42 // The controluser is also 43 // used for all relational 44 // features (pmadb) 45$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)? 46$cfg['Servers'][$i]['user'] = ''; // MySQL user 47$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed 48 // with 'config' auth_type)
あなたの回答
tips
プレビュー