答えて

0

オープンを持つユーザーとの接続 'ALLの権限とテンポラリテーブルのストアポイントとしてtmpデータベースを作成します。

create database if not exists tmp; 

割り当てSELECTCREATE TEMPORARY TABLESへあなたのレプリカユーザーの接続:

grant SELECT, CREATE TEMPORARY TABLES ON tmp.* TO [email protected]'%'; 

ここで、レプリカ接続は、一時テーブル:

create temporary table tmp.my_temporary_table 
    select 
    mt.id 
    from my_databaes.my_table as mt 
    limit 10; 

select * from tmp.my_temporary_table; 

drop temporary table tmp.my_temporary_table; 
+0

「書き込み権限接続」とはどういう意味ですか?それを開く方法? – Andremoniy

+0

@Andremoniy ** 'ALL'特権**を持つユーザーとの接続を開くか、または少なくともDBを作成してDBに対する特権を変更するのに十分な特権を与えます。通常はあなたの 'root'ユーザです。 _(あいまいさを避けるために答えが変わった)_ – fguillen

+0

ああ、それは 'mysql' ...ポストグレスには適していない – Andremoniy

関連する問題