Mysqlのユーザが作成されると、ローカルからしか接続できないようになっている。
$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 81 Server version: 5.1.69 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select user,host,password from mysql.user; +-------+-----------------------+-------------------------------------------+ | user | host | password | +-------+-----------------------+-------------------------------------------+ | root | localhost | | | root | localhost.localdomain | | | root | 127.0.0.1 | | | | localhost | | | | localhost.localdomain | | | wp | localhost | *8C2FB6D9F381D4D1442EF41C174D50EFE9B0E80D | | boke | localhost | *DE76F587B6C62747A1196425D31E9034A9DAB9BB | | kakei | localhost | *831A129AEB82E516DEB0BA92C657375D56D02DB7 | +-------+-----------------------+-------------------------------------------+ 8 rows in set (0.00 sec) 外部から接続できるように設定する。 mysql> grant all privileges on *.* to kakei@'192.168.127.0/255.255.255.0'; Query OK, 0 rows affected (0.00 sec)
kakei:外部から接続するためのユーザ
192.168.127.0:接続元のIPアドレス
255.255.255.0:ネットマスク
|
2015年2月28日土曜日
ODBCなど外部環境からLinuxのmysql(サーバ)に接続する
登録:
コメントの投稿 (Atom)
ASEAN諸国で人気のあるスポーツイベントとその影響についての特集記事。
by ChatGPT
-
世界中で数多くの音楽フェスティバルが開催されていますが、その中でも特に人気を集めるトップ10の音楽フェスティバルをご紹介します。 1. Coachella(アメリカ):カリフォルニア州インディオで毎年開催されるCoachellaは、洗練された音楽ラインナップとファッションシ...
-
[問題] DOSバッチのforループ内で echo %time% で表示された時刻が更新されない 。 -------------------------------- [解決策] ループの前に setlocal enabledelayedexpansion と書...
-
画面上に編集可能なテキストエリアを作るには、どうすればいいか? 上の図のように、「activity_main.xml」中の「Plain Text」を選んで、画面に挿入しても、一行のラインしかならないです。複数行からなるテキストエリアにするには、赤丸3の「Text」を押...
0 件のコメント:
コメントを投稿