• 内容へ移動

fl8 Wiki

ユーザ用ツール

  • ログイン

サイト用ツール

  • 最近の変更
  • メディアマネージャー
  • サイトマップ
現在位置: Dokuwiki.fl8.jp » code
トレース:

code

検索

以下に検索結果を表示します。

完全一致
  • 完全一致
  • 前方一致
  • 後方一致
  • 部分一致
@02_freebsd:04_database
  • 全ての名前空間
  • 02_freebsd:04_database:01_mysql (22)
  • 02_freebsd:04_database:02_posgresql (4)
  • 02_freebsd:04_database:03_sqlite (1)
全期間
  • 全期間
  • 1週間以内
  • 1カ月以内
  • 1年以内
ヒット数順に並べる
  • ヒット数順に並べる
  • 最終更新順に並べる

全文検索:

MySQLコマンド @02_freebsd:04_database:01_mysql
68 ヒット, 最終更新: 9カ月前
ンド ====== ===== ①ユーザ関係 ===== ==== ユーザの確認 ==== <code console> mysql> select host,user,Grant_priv from ... -------+------------+ 12 rows in set (0.00 sec) </code> ==== 権限の確認 ==== <code console> mysql> SHOW GRANTS FOR testdb_user@localhost; +---------------------... ----------------------------------------------+ </code> === 権限の追加 === <code> グローバルレベル GRANT ALL ON *.*
MySQLのインストール @02_freebsd:04_database:01_mysql
24 ヒット, 最終更新: 13年前
ロードしてくる~ http://www.mysql.com/ ====== 展開 ====== <code console> $ tar zxvf mysql-5.0.51b.tar.gz $ cd mysql-5.0.51b </code> ====== mysqlユーザ作成 ====== <code console> pw groupadd mysql pw useradd mysql -g mysql -d /usr/local/ -s /usr/sbin/nologin </code> ====== インストール ====== <code console> $ ./config
PostgreSQLインストール @02_freebsd:04_database:02_posgresql
21 ヒット, 最終更新: 9年前
ール ====== server からインストールしようとしても、client からインストール <code console> # cd /usr/ports/databases/postgresql81-... s/databases/postgresql81-server # make install </code> ===== OpenSSL をインストールしていない場合 ===== Dependenc... ITH_OPENSSL_BASE or WITH_OPENSSL_PORT *** Error code 1 ====== ソースからインストール ====== <code console> # wget ftp://ftp.sra.co.jp/pub/cmd/postgres/8.3.3/postgres
MySQL - PHPMyAdmin @02_freebsd:04_database:01_mysql
14 ヒット, 最終更新: 13年前
==== ===== 展開 ===== Web上から表示できる場所に展開するとよいと思います。 <code> $ tar zxvf phpMyAdmin-2.9.2-all-languages.tar.g... dmin $ cp config.sample.inc.php config.inc.php </code> ==== 設定変更 ==== <code> $ vi config.ini.php --------------------変更箇所----------------------- 38 $cfg[... '; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ </code> これでmysqlに設定してあるユーザ名・パスワードでログインできます。 ===== 確認 ==
SQLiteコマンド @02_freebsd:04_database:03_sqlite
11 ヒット, 最終更新: 8カ月前
= ===== 接続 ===== 例として、「db.sqlite3」がデータベースファイル <code> # sqlite3 db.sqlite3 </code> ===== テーブル一覧 ===== <code> sqlite> .tables acl network_pool clu... one_pool marketplaceapp_pool </code> ===== 終了 ===== <code> sqlite> .quit </code>
20 wait_timeoutとthread_cache_size @02_freebsd:04_database:01_mysql
10 ヒット, 最終更新: 8年前
ut ===== デフォルトでは、MySQL側でconnectionを8時間保持し続けます。 <code console> mysql> show global variables like 'wait_... -------------+-------+ 1 row in set (0.00 sec) </code> <code |my.cnf> wait_timeout = 360 </code> ===== thread_cache_size ===== wait_timeout を減らすと、その分スレッドをthreadを生
MySQL - レプリケーション @02_freebsd:04_database:01_mysql
10 ヒット, 最終更新: 13年前
ナリログとも言う)を有効にします。~ my.cnf ファイルに以下の記述があるか確認して下さい。 <code> [mysqld] log-bin server-id=1 </code> <color red>※server-id は、1以上の整数であれば何でも良いです。</color> ===== テーブル... D LOCK; ===== マスタデータのスナップショットを撮る(tarで固める) ===== <code> # cd /home/mysql # tar zcvf data.tar.gz data # scp data.tar.gz [スレーブサーバ] </code> ===== 更新ログの状態を取得する ===== 実行したら、画面に出力された「File」と「
MySQL - slow log @02_freebsd:04_database:01_mysql
10 ヒット, 最終更新: 7週間前
ry_timeで指定)なのでそのクエリを見直す。 これで動いてるプロセスを見ることもできる。 <code console> mysql > show full processlist; mysql> SHOW PROCESSLIST; mysql> SHOW FULL PROCESSLIST; </code> 以下がイコールなので、下だとwhereが使える <code console> mysql> SELECT * FROM information_schema.PROCESSLIST where COMMAND='Query'; </code> ====== オンラインで変更 ====== ===== 5.0 ===== <code>
外部接続 @02_freebsd:04_database:01_mysql
10 ヒット, 最終更新: 13年前
けの設定を記述します。\\ ====== ユーザの確認 ====== ▼現在のユーザの確認。 <code console> # mysql -u root -p mysql> select User,... -+------------------+ 6 rows in set (0.00 sec) </code> ====== ユーザを追加 ====== ▼ユーザ名:vpopmailuser パスワード:v... \\ ※%はワイルドカード。この場合192.168.1.のネットワークからの接続の意味。\\ <code console> mysql> GRANT ALL ON vpopmail. * TO vpop... ailpass"; Query OK, 0 rows affected (0.00 sec) </code> ▼追加されたか確認。 <code console> mysql> select User,H
PostgreSQLコマンド @02_freebsd:04_database:02_posgresql
10 ヒット, 最終更新: 3年前
from t_images order by id desc; こんな感じで表示される <code> id ------ 0017 0015 0014 0012 0011 0... 0007 0006 0005 0003 0002 0001 (14 rows) </code> -PostgreSQLのユーザ作成、データベース作成等の基本操作\\ [[http://www... たにフィールドを作ってデータを写してデータフィールドを変更するというめんどくさい処理がいります。 <code> ①ALTER TABLE (テーブル名) ADD COLUMN after_fild (変更後... TABLE (テーブル名) RENAME after_fild TO (変更後フィールド名) </code> ===== postgresqlチップス ===== [[http://ash.jp/db/p
LEFT JOIN、INNER JOIN違い @02_freebsd:04_database:01_mysql
8 ヒット, 最終更新: 11年前
NNER JOIN違い ====== ===== 下記2つのテーブルでテスト ===== <code console> mysql> SELECT * FROM table1; +------+---... | +------+------+ 6 rows in set (0.00 sec) </code> <code console> mysql> SELECT * FROM table2; +------+------+ | id | name | +------+------+ | 1 |... | +------+------+ 6 rows in set (0.00 sec) </code> ===== LEFT JOIN ===== <code console> mysql> s
11 ERROR:1093を回避 @02_freebsd:04_database:01_mysql
6 ヒット, 最終更新: 10年前
3を回避 ====== update の時同じテーブルに対するサブクエリからの操作ができない <code console> update hoge set code = 0 where id IN (select id from hoge as tmp where id = 1 group by id or... y target table 'hoge' for update in FROM clause </code> ===== 対応 ===== これで上手くいく <code console> update hoge set code = 0 where id IN ( select id from (sele
MySQL - シェルで枠まで出力する @02_freebsd:04_database:01_mysql
6 ヒット, 最終更新: 8年前
===== MySQL - シェルで枠まで出力する ====== 下記のようなテーブルがある <code console> # mysql -u root testdb -e 'select * from... 5 | E | | 6 | F | +------+------+ </code> リダイレクトしたり、パイプでつなげたりすると枠は消えてしまいます。 <code console> # mysql -u root testdb -e 'select * from table1' > ... # cat /tmp/aaa id name 1 A 2 B 3 C 4 D 5 E 6 F </code> たまにこの枠も欲しい場合がある。 「--table」を付けると枠も一緒に出力してくれます。
MySQL - 数値に変換してソート @02_freebsd:04_database:01_mysql
6 ヒット, 最終更新: 12年前
= backup_sizeがvarcharの為、普通にソートするとこのようになってしまいます。 <code console> mysql> select disk_id,backup_size from b... ------+-------------+ 12 rows in set (0.01 sec) </code> ===== こうすれば、数値に変換してソートできる。 ===== 0を足して、無理やり数値へ変換する。 <code console> mysql> select disk_id,backup_size from b... ------+-------------+ 12 rows in set (0.00 sec) </code> ===== castを利用する場合 ===== <code console> mysql> s
MySQL - クエリ全部ログ取得 @02_freebsd:04_database:01_mysql
6 ヒット, 最終更新: 7年前
確認 ===== この場合ログファイルは、/var/run/mysqld/mysqld.log <code> mysql> show global variables like 'general_log_f... (0.00 sec) mysql> set global general_log='OFF'; </code> ===== ログを取得開始 ===== <code> mysql> set global general_log='ON'; </code> ===== ログを取得停止 ===== <code> mysql> set global general_log=
php4 + sqlite3の実装
4 ヒット, 最終更新: 13年前
15 MySQL 55 to 56 で問題 @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 3年前
18 MySQLでALTER TABLEの進捗確認 @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 6年前
IPアドレス-アドレスナンバー @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 12年前
MySQL - ログローテート @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 4年前
mysqldumpでエラー @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 12年前
MySQLパスワードエラー @02_freebsd:04_database:01_mysql
4 ヒット, 最終更新: 13年前
ApacheのBasic認証でPostgreSQLを参照 @02_freebsd:04_database:02_posgresql
4 ヒット, 最終更新: 13年前
文字化けする場合 @02_freebsd:04_database:02_posgresql
4 ヒット, 最終更新: 13年前
01 MySQL インデックス @02_freebsd:04_database:01_mysql
2 ヒット, 最終更新: 6年前
17 MySQL view一覧 @02_freebsd:04_database:01_mysql
2 ヒット, 最終更新: 6年前
81 ERROR 1267 (HY000): Illegal mix of collations @02_freebsd:04_database:01_mysql
2 ヒット, 最終更新: 10年前
MySQL - Transaction @02_freebsd:04_database:01_mysql
2 ヒット, 最終更新: 10年前

ページ用ツール

  • 文書の表示
  • 以前のリビジョン
  • バックリンク
  • 文書の先頭へ
特に明示されていない限り、本Wikiの内容は次のライセンスに従います: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki