MySql構成変更によるリモート接続の許可

387 ワード

rootログイン
mysqlデータベースに切り替えuse mysql;
userテーブルの表示select user,host from user;
ipを追加grant all privileges on *.* to root@"xxx.xxx.xxx.xxx" identified by " ";または(%はすべてのipを許可する)grant all privileges on *.* to root@"%" identified by " ";flush privileges;
物覚えがいいのは下手な筆頭に及ばない~~