質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Q&A

0回答

319閲覧

xampp ログインができません

hakusa.ppl

総合スコア21

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

0グッド

0クリップ

投稿2019/07/06 08:58

編集2019/07/06 09:37

xamppのphpmydmainにログインができません。
パスワードを設定せずログインしていたのですが、この二つが出てログインできません。

・mysqli_real_connect(): (HY000/1130): Host '127.0.0.1' is not allowed to connect to this MariaDB server
・MySQL サーバに接続しようとしましたが拒否されました。config.inc.php のホスト、ユーザ名、パスワードが MySQL サーバの管理者から与えられた情報と一致するか確認してください。

コード

Example

1# 2# This is for a system with little memory (<= 64M) where MySQL is only used 3# from time to time and it's important that the mysqld daemon 4# doesn't use much resources. 5# 6# You can copy this file to 7# C:/xampp/mysql/bin/my.cnf to set global options, 8# mysql-data-dir/my.cnf to set server-specific options (in this 9# installation this directory is C:/xampp/mysql/data) or 10# ~/.my.cnf to set user-specific options. 11# 12# In this file, you can use all long options that a program supports. 13# If you want to know which options a program supports, run the program 14# with the "--help" option. 15 16# The following options will be passed to all MySQL clients 17[client] 18# password = your_password 19port = 3306 20socket = "C:/xampp/mysql/mysql.sock" 21 22 23# Here follows entries for some specific programs 24 25# The MySQL server 26[mysqld] 27port= 3306 28socket = "C:/xampp/mysql/mysql.sock" 29basedir = "C:/xampp/mysql" 30tmpdir = "C:/xampp/tmp" 31datadir = "C:/xampp/mysql/data" 32pid_file = "mysql.pid" 33# enable-named-pipe 34key_buffer = 16M 35max_allowed_packet = 1M 36sort_buffer_size = 512K 37net_buffer_length = 8K 38read_buffer_size = 256K 39read_rnd_buffer_size = 512K 40myisam_sort_buffer_size = 8M 41log_error = "mysql_error.log" 42skip-name-resolve 43 44 45# Where do all the plugins live 46plugin_dir = "C:/xampp/mysql/lib/plugin/" 47 48# Don't listen on a TCP/IP port at all. This can be a security enhancement, 49# if all processes that need to connect to mysqld run on the same host. 50# All interaction with mysqld must be made via Unix sockets or named pipes. 51# Note that using this option without enabling named pipes on Windows 52# (via the "enable-named-pipe" option) will render mysqld useless! 53# 54# commented in by lampp security 55#skip-networking 56#skip-federated 57 58# Replication Master Server (default) 59# binary logging is required for replication 60# log-bin deactivated by default since XAMPP 1.4.11 61#log-bin=mysql-bin 62 63# required unique id between 1 and 2^32 - 1 64# defaults to 1 if master-host is not set 65# but will not function as a master if omitted 66server-id = 1 67 68# Replication Slave (comment out master section to use this) 69# 70# To configure this host as a replication slave, you can choose between 71# two methods : 72# 73# 1) Use the CHANGE MASTER TO command (fully described in our manual) - 74# the syntax is: 75# 76# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>, 77# MASTER_USER=<user>, MASTER_PASSWORD=<password> ; 78# 79# where you replace <host>, <user>, <password> by quoted strings and 80# <port> by the master's port number (3306 by default). 81# 82# Example: 83# 84# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306, 85# MASTER_USER='joe', MASTER_PASSWORD='secret'; 86# 87# OR 88# 89# 2) Set the variables below. However, in case you choose this method, then 90# start replication for the first time (even unsuccessfully, for example 91# if you mistyped the password in master-password and the slave fails to 92# connect), the slave will create a master.info file, and any later 93# change in this file to the variables' values below will be ignored and 94# overridden by the content of the master.info file, unless you shutdown 95# the slave server, delete master.info and restart the slaver server. 96# For that reason, you may want to leave the lines below untouched 97# (commented) and instead use CHANGE MASTER TO (see above) 98# 99# required unique id between 2 and 2^32 - 1 100# (and different from the master) 101# defaults to 2 if master-host is set 102# but will not function as a slave if omitted 103#server-id = 2 104# 105# The replication master for this slave - required 106#master-host = <hostname> 107# 108# The username the slave will use for authentication when connecting 109# to the master - required 110#master-user = <username> 111# 112# The password the slave will authenticate with when connecting to 113# the master - required 114#master-password = <password> 115# 116# The port the master is listening on. 117# optional - defaults to 3306 118#master-port = <port> 119# 120# binary logging - not required for slaves, but recommended 121#log-bin=mysql-bin 122 123 124# Point the following paths to different dedicated disks 125#tmpdir = "C:/xampp/tmp" 126#log-update = /path-to-dedicated-directory/hostname 127 128# Uncomment the following if you are using BDB tables 129#bdb_cache_size = 4M 130#bdb_max_lock = 10000 131 132# Comment the following if you are using InnoDB tables 133#skip-innodb 134innodb_data_home_dir = "C:/xampp/mysql/data" 135innodb_data_file_path = ibdata1:10M:autoextend 136innodb_log_group_home_dir = "C:/xampp/mysql/data" 137#innodb_log_arch_dir = "C:/xampp/mysql/data" 138## You can set .._buffer_pool_size up to 50 - 80 % 139## of RAM but beware of setting memory usage too high 140innodb_buffer_pool_size = 16M 141## Set .._log_file_size to 25 % of buffer pool size 142innodb_log_file_size = 5M 143innodb_log_buffer_size = 8M 144innodb_flush_log_at_trx_commit = 1 145innodb_lock_wait_timeout = 50 146 147## UTF 8 Settings 148#init-connect=\'SET NAMES utf8\' 149#collation_server=utf8_unicode_ci 150#character_set_server=utf8 151#skip-character-set-client-handshake 152#character_sets-dir="C:/xampp/mysql/share/charsets" 153sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION 154log_bin_trust_function_creators = 1 155 156[mysqldump] 157quick 158max_allowed_packet = 16M 159 160[mysql] 161no-auto-rehash 162# Remove the next comment character if you are not familiar with SQL 163#safe-updates 164 165[isamchk] 166key_buffer = 20M 167sort_buffer_size = 20M 168read_buffer = 2M 169write_buffer = 2M 170 171[myisamchk] 172key_buffer = 20M 173sort_buffer_size = 20M 174read_buffer = 2M 175write_buffer = 2M 176 177[mysqlhotcopy] 178interactive-timeout

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hakusa.ppl

2019/07/06 09:39

何度も申し訳ありません。 ご丁寧にありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問