ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
ã¼ã¼ã£ã¨ä½æ¥ãã¦ä½æ ãæ¶ãã¦ãã¾ã£ãã¨ãã®å¯¾å¦æ³ãä¾ã¯CentOSã§ãããã¹ãªã©ã¯é©æèªã¿æ¿ãã¦ãã ããã ã¾ãMySQLãåæ¢ãã¾ãã # /etc/init.d/mysql stopMySQLãèªè¨¼ç¡è¦ã¢ã¼ãã§èµ·åãã¾ãã--skip-grant-tablesãç¡è¦ãã©ã°ã§ãã # /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-filk --skip-grant-tables &ããã§mysqlã«rootã§ãã°ã¤ã³ã§ãã¾ãã # mysql -u rootãã®ã¢ã¼ãã ã¨grantãç¡å¹ãªã®ã§ãæ®éã®ææ³ã§ã¯rootã復帰ã§ããªããã§ãã ã¨ãããããã©ã®ãã¼ãã«ã§ãè¦ããã®ã§mysql.userãè¦ã¦ã¿ã¾ãã mysql> desc mysql.user; +--------------
symfonyã§schema.ymlã«ãã«ããã«ãæ¸ãã¦ãããã¼ãã«ä½æï¼ã¨æã£ãã以ä¸ã®ã¨ã©ã¼ã SQLSTATE[HY000]: General error: 1005 Can't create table 'dbname.#sql-192c_1a6' (errno: 150). Failing Query: "ALTER TABLE table1 ADD CONSTRAINT table1_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id)". Failing Query: ALTER TABLE table1 ADD CONSTRAINT domain_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard
ãããã®è¦ä»¶ãæºããããªãå ´åãMySQL 㯠errno ãåç §ããã¨ã©ã¼ 1005 ãè¿ãã¾ã: 150:å¤é¨ãã¼å¶ç´ãæ£ããå½¢æãããªãã£ããã¨ãæå³ãã¾ãã ãã¼ãã«ãå¤æ´ããã¨ãã¨ã©ã¼ãè¿ããã¾ã (errno: 150) å¤æ´ããããã¼ãã«ã«å¯¾ãã¦å¤é¨ãã¼å®ç¾©ãæ£ããæ§æããã¦ããªãå ´åã
#00 VMWareÃCentOS5 Windowsã§ã«ã³ã¿ã³éçºç°å¢ ç®æ¬¡ã¯ãã¡ã MySQL Serverãããã±ã¼ã¸ã¤ã³ã¹ãã¼ã« [root@five ~]# yum install mysql-server Installed: mysql-server.i386 0:5.0.22-2.1.0.1 Dependency Installed: perl-DBD-MySQL.i386 0:3.0007-1.fc6 Complete! ãã¤ãã©ãããyumã§ã¤ã³ã¹ãã¼ã«ãã¾ãã ç¾æç¹ã§MySQL-5.0.22ãã¤ã³ã¹ãã¼ã«ããã¾ããã åæè¨å® ã決ã¾ãã®ãã¨ãã¾ãããã¾ãããï¼ èªåèµ·åãONã«ãã¾ãã [root@five ~]# chkconfig mysqld onã¨ãããããµã¼ããèµ·åãã¾ãã [root@five ~]# /etc/init.d/mysqld start M
ä»åã¯ã以åä½ã£ãxoopsã®ããã¯ã¢ããã¹ã¯ãªããã«ã¨ã©ã¼å¦çã追å ãã¦ã¿ãã ã·ã§ã«ã¹ã¯ãªããã§ã¨ã©ã¼ãã³ããªã³ã°ããã¨ãã®åèã«ã©ããã ãã¤ãå¿æ´ãããã¨ãï¼ ãåèã å ¥ébash ã¾ããã¨ã©ã¼å¦çãªãã®ã¹ã¯ãªããã¯ãããªæãã #!/bin/bash # Create temporary file. tmpfile="`mktemp`" # Write hostname. echo -n "["`date +%Y/%m/%d`" "`date +%H\:%M\:%S`"] " >> ${tmpfile} echo "Host: "`hostname` >> ${tmpfile} # Purge old dump files. for name in `find /usr/local/backup/*.dump -mtime +6` do rm $name echo -n "["
_ Mac ç MySQL GUI ã¯ã©ã¤ã¢ã³ã諸ã CocoaMySQL UI ã¯ããã¤ãä¸çªä½¿ãæãã¨æã æ©è½ã¯ãã¼ãã«ãããã£ãããã¼ã¿ãããã£ããããç¹ã«é¢ãã¦ã¯å¿ è¦åå ããããMySQL 4.1.x 以éã«ã¯å¯¾å¿ãã¦ãªã ä¸å¿ 4.1.x 以éã§åã fork çã¯åå¨ãããã ãã©ããããªããæåããã¾ãã¡ãªæ°ã(ç§ã®ç°å¢ãå¤ãªã®ãï¼) YourSQL 4.0.x ç³»åã«ã¯æ¥ç¶ã§ããªã 4.1.x 以éã ã¨ä¸éãåãã¦ããããã«è¦ãã ã§ããæåã³ã¼ãã®ãã¨ã¯ãã¾ãèãããã¦ããªãããã«è¦ããã ãã£ã¨ latin1 㨠UTF-8 ãããããèæ ®ããã¦ãªãã®ã§ã¯ãªãã (æªç¢ºèª)ã UI ã¯ã¾ãã¾ãã ãã©ã CocoaMySQL ã®æ¹ã使ãæããã(æ £ãã®åé¡ãï¼) MySQL æ¬å®¶ããé å¸ããã¦ãã MySQL Administrator/MySQL Query Bro
2009å¹´01æ19æ¥14:35 by å±±å´æ³°å® Railsã¢ããªã¨ãã¦ä¸ç80ä½ããç¥ããªã ã«ãã´ãªRuby Tweet sparklegate Comment(0)Trackback(0) rails100 wiki / Alexa Rankingsããã¯Railsã¢ããªPVæ°ã®ä¸çã©ã³ãã³ã°ã§ãã å ¬è¡¨ã¯ã§ããªãã®ã§ãã¦ãã¾ããããå¼ç¤¾ãä½ã£ãæRailsã¢ããªãåAlexaã§èª¿æ»ãã¦ã¿ãã¨ããã®ã©ã³ãã³ã°ã®80ä½ãããã«å ¥ããã¨ããããã¾ããã(2008-12-22æç¹) ãµã¼ã2å°ã§åãã¦ããã ããã©ããçµæ§è¯ãç·è¡ã£ã¦ãããã ãã£ã±ããapache2+mod_proxy_balancer+mongrel_cluster+mysql+memcachedã£ã¦ããé¢ç½ã¿ã®ãªãæ§æã ã ãã©è¶ å®å®ãã¦ããã ãã®ãã¦ãã¦ã¯çããããã¹ãã ãRubyãã«ãã´ãªã®ææ°è¨äº ã¿ã° ï¼#
yukiã§ãããã¤ã¨ãããå§ãã¦3kgæ¸ã£ãã¨æã£ããã風éªãå¼ãã¦è¦äºã«1kgå¢éã éåããªãã¨é§ç®ã§ããããã¨æ®ã20kgãéã®ãã¯é ãã§ãã ãã¦ä»åã¯ããRDBã§é層æ§é ãæ±ãã«ã¯ï¼ãã§ãã ãããµã¤ããæ§ç¯ä¸ã«é層æ§é ããã£ãã«ãã´ãªæ§é ã«ãããã¨ã«ãªããã©ã®ããã«DBã§æ±ããæ©ã¿ã¾ããã DBã¯MySQLãæ¡ç¨ãã¦ããã®ã§ããã®æç¹ã§ã±ã£ã¨é ã«æµ®ããã é¸æè¢ã¯ä»¥ä¸ã®ãããªãã®ã§ããã XML-DBãå©ç¨ãã 親ã«ãã´ãªã¬ã³ã¼ãã®ãã©ã¤ããªIDãåã«ãã´ãªã¬ã³ã¼ãã«æããã 親ãå«ããã絶対ãã¹ããå称ã¨ãã¦æ±ããåãåºããå¾ã«ãã¼ã¹ ãã¡ã¤ã«ã·ã¹ãã ã«åæ§ã®ãã£ã¬ã¯ããªæ§é ãä½ããæ¯åãã¼ã¹ãã (1)ã®XMLDBã¯ãªã¼ãã³ã½ã¼ã¹ã®eXistãXindiceãYggdrasillãªã©æ§ã ãªé¸æè¢ãããã¾ããããã«ãã´ãªã®ã¿ã®å©ç¨ãªå²ã«ã¡ã³ããã³ã¹ã³ã¹ããé«ãããã®ã§è¦éãã¾
ãã¼ã¿ãã¼ã¹ MySQL 5.5 - 5.7 MySQL 5.6以éã¨MariaDBã¯æ¢ç¥ã®åé¡ãããã¾ã (#19344, #19395, #17460). Redmine 3.x 㯠MySQL 5.0 㨠5.1 ã«ã対å¿ãã¦ãã¾ã PostgreSQL 9.2以é ãã¼ã¿ãã¼ã¹ã®æ¥ä»å½¢å¼ã¯ISO(PostgreSQLã®ããã©ã«ã)ã«è¨å®ãã¦ãã ããã次ã®SQLæã§è¨å®ã§ãã¾ã: ALTER DATABASE "redmine_db" SET datestyle="ISO,MDY"; Redmine 3.x 㯠PostgreSQL 8.1 ãã 9.1 ã«ã対å¿ãã¦ãã¾ã Microsoft SQL Server 2012以é Redmine 4.0 ã¯2018å¹´12ææç¹ã§ã¯SQL Serverã«å¯¾å¿ãã¦ãã¾ãããä¾åãã¦ããã©ã¤ãã©ãª activerecord-sqlserve
MySQLãå«ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã§ã¯æ±ããã¼ã¿ãããã¼ãã«ãã¨ã«ä¿åãã¾ãã ãã®ãã¼ãã«ã¯EXCELã®ã·ã¼ãããã«ã·ã³ãã«ã«ãã©ãããªãªã¹ãã®ã¤ã¡ã¼ã¸ï¼å®éã«ã¯ã»ã«ã®çµåãã§ããã§ããªããªã©ã®å¤§ããªå·®ãããï¼ã§ãXMLã®ããã«é層åããããã¼ã¿ã¯è¦ªåé¢ä¿ãæã¡å¾æ¥ã®ãã¼ãã«ã§ã¯èªç¶ã«ç¾ããã¨ãã§ãã¾ããã Oracleã§ã¯é層åããããã¼ã¿ã®åãæ±ãããSTART WITH ⦠CONNECT BY PRIOR â¦ãé層ååãã¨ããSQLã«ããå®è£ ããã¾ãããããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã§ã¯é層ãã¼ã¿ã®åãæ±ããæå³ããã¦ããããé層ãã¼ã¿ãæ±ããªããããã¯æ±ãã«ããã¨ããåé¡ãããã¾ãã ç¹ã«æè¿ã§ã¯Webã§ç¹ã«ããã¨ããè¡ããããã¼ã¿å½¢å¼ã«XMLãæ®åãã¦ããã¨ãããããæ¨ã®ãããªæ§é ï¼ããªã¼æ§é ãæ¨æ§é ï¼ã«çµç¹åãããããªã¼æ§é ã«ãã親åé¢ä¿ã使ç¨ãã¦ããªã¼ãã¼ã¿æ§é ã表
"The Documents contained within this site may include statements about Oracle's product development plans. Many factors can materially affect Oracle's product development plans and the nature and timing of future product releases. Accordingly, this Information is provided to you solely for information only, is not a commitment to deliver any material, code, or functionality, and should not be reli
From: zen kishimoto <zen kishimoto <zen@xxxxxxxxxx>> Date: Sat, 03 Sep 2005 09:24:15 -0700 Subject: [mysql 12071] é層åããããã¼ã¿ãMySQLã§æ±ããï¼Managing Hierarchical Data in MySQLï¼ http://dev.mysql.com/tech-resources/articles/hierarchical-data.html ï¼å³ã¯ãã®ãµã¤ããåç §ã®ãã¨ï¼ Mike Hillyerè åãã« å¤ãã®ã¦ã¼ã¶ã¼ã¯ä¸åãããã¯SQLãã¼ã¿ãã¼ã¹å ã§ãé層åãããã¼ã¿ã æ±ã£ããã¨ãããã¨æãã¾ãããã®ã¨ãã¯ãªã¬ã¼ã·ã§ãã« ãã¼ã¿ãã¼ã¹ã¯é層åãããã¼ã¿ç¨ã«éçºãããªãã£ãã¨èããã¨æãã¾ãã ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ã¯é層åããã¦ããã
ããã®ã¨ãããjavaccã¨awsã«é äºããã¦ããç±³æã§ãã ãã使ãDB(Oracle/MySQL/PostgreSQL/SQLServer)ã«ãããè¨è¨æã®ãµã¤ãºè¦ç©ããã§ä½¿ããµã¤ãã®åå¿é²ã ãã¨ã¯ãOracleããã®Pythonæ å ±ã Oracle Oracle ç©çè¨è¨ http://www.oracle.com/technology/global/jp/columns/skillup/oracle9i/index.html é åãµã¤ãºè¦ç©ãã http://otn.oracle.co.jp/document/estimate/index.html OTNã«ãã°ã¤ã³ããå¿ è¦ããã¾ãããªã³ã©ã¤ã³ã§è¦ç©ãããåºæ¥ã¾ãã ã¢ã«ã¦ã³ãæã£ã¦ããªã人ã¯ããã®è¦ç©ãããã¼ã«ã使ãç®çã§ã¢ã«ã¦ã³ããä½ã£ã¦ã¿ã¦ã¯ãããã§ããããã OLTPç³»ã¨DWHç³»ã«ããã¦ãããã¯ãµã¤ãºãèæ ®ããDWHç³»ã¯ã
ã¡ãã£ã¨ãã£ããâãªã¿ã¤ãã«ãã¤ãã¦ãã¾ã£ãããä»æ¥ã¯ç¬æã¨åè¦ã§MySQLãé«éåããæ¹æ³ã10åç´¹ä»ããããMySQLãµã¼ãããã¥ã¼ãã³ã°ããã¨ããåæå°å ¥ããå ´åãªã©ã«åèã«ãã¦ãããããã 1. ãããã¡ãå¢ãããã¾ãã¯æ¸ãã ãã¥ã¼ãã³ã°ã®åºæ¬ä¸ã®åºæ¬ã§ããããé©åãªãããã¡ãµã¤ãºãè¨å®ãããã¨ã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã®è¦ã§ããã主ãªãããã¡ã¯æ¬¡ã®éãã innodb_buffer_pool_sizeã»ã»ã»InnoDBã ããå©ç¨ããå ´åã¯ç©ºãã¡ã¢ãªã®7ã8å²ç¨åº¦ãå²ãå½ã¦ãæãéè¦ãªãããã¡ã§ãããä½è«ã ããå®éã«ã¯ããã§å²ãå½ã¦ãå¤ã®5ã10%ããããå¤ãã«ã¡ã¢ãªã使ãã®ã§æ³¨æãå¿ è¦ã ã key_buffer_sizeã»ã»ã»MyISAMã ããå©ç¨ããå ´åã¯ã空ãã¡ã¢ãªã®3å²ç¨åº¦ãå²ãå½ã¦ãã¨ãããæ®ãã¯ãã¡ã¤ã«ã·ã¹ãã ã®ãã£ãã·ã¥ç¨ã«æ®ãã¦ãããã sort_buffer_
symfonyã§ã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ããéã«ãæåã³ã¼ã絡ã¿ã§é¢ç½ãäºè±¡ã«ééããã®ã§è¨äºã«ãããã¨ã«ããï½ æºå¸¯ç¨ã®Webã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ããã®ã ãã Webãµã¼ãå´ã§ã®åºåãã¼ã¿ã®æåã³ã¼ããShift_JISã«çµ±ä¸ããããã 以ä¸ã®ããã«å ¨ã¦ã®æåã³ã¼ããShift_JIS/cp932ã«çµ±ä¸ãã¦å®é¨ãã¦ã¿ãã MySQL(my.cnf) [client] default-character-set=cp932 [mysqld] default-character-set=cp932 ç¾å¨ã®è¨å®ç¶æ³ã確èªã mysql> show variables like 'character_set%'; +--------------------------+----------------------------+ | Variable_name | Value | +-
ã¨ããåå¼·ä¼ã§Sunã®ã¨ã³ã¸ãã¢ã®äººã®ãã¬ã¼ã³ãç´æ¥èãæ©ä¼ããã£ãã®ã§ã¡ã¢ã£ããã¨ãå ¬éãã¾ããåºæ¬çãªäºãå¤ããã ãããã©ãé常ã«åèã«ãªãã¾ããã ããã©ã¼ãã³ã¹ã¨ã¯ ã¹ã«ã¼ããã ã¬ã¹ãã³ã¹ã¿ã¤ã /ã¬ã¤ãã³ã· ã¹ã±ã¼ã©ããªã㣠ä¸è¨ã®ã³ã³ããã¼ã·ã§ã³ ã¢ã¼ããã¯ãã£ã¨ã¯ Connection Thread Pool Query Cache Parser SQLã¯ã¨ãªããã¼ã¹ Optimizer Storage Engines ã¢ããªã«ãã£ã¦æé©ãªã¨ã³ã¸ã³ãé¸æãã¹ã ãµã¼ãã®ã³ãã¯ã·ã§ã³&ã¹ã¬ãã my.cnf max_connection (100) å¤ãããã¨ã¡ã¢ãªãæ¶è²»ãããå¯è½æ§ãã thread_cache_size (8) ã¹ã¬ãããã³ãã¯ã·ã§ã³ã®åæå¾ã«ããã£ãã·ã¥ãã¦ããæ° ä¸è¬çã«ã¯ max_connections / 3 sort_buffer_size(2M)
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}