在項目過程遇到一些因為資料庫版本原因發生的一些錯誤mysql伺服器升級資料還原後表結構不能顯示mysql伺服器升級後,資料庫資料還原後,在使用navicat進行desc表結構是出現了“1558 – Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50018, now running 50146. Please use mysql_upgrade to fix
使用php插入大資料記錄到Mysql的時候,遇到一個問題:2006:MySQL server has gone away :: insert into ******經過尋找,知道了原因,是Mysql的max_allowed_packet的值設定得過小或者沒有設定,此變數是用來控制其通訊緩衝區的最大長度。解決方案:[mysqld]max_allowed_packet =
在日常工作中,我們會經常碰到產品分類,文章分類等等修改不頻繁的多級分類。通常的做法是類似於這樣的結構:常規做法如果按照多級查詢的話,採用以下sql語句就可以:SELECT t1.name AS lev1, t2.name as lev2, t3.name as lev3, t4.name as lev4FROM category AS t1LEFT JOIN category AS t2 ON t2.parent = t1.category_idLEFT JOIN category AS t3
最近使用mysql匯入sql指令碼時間出現錯誤:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREE) ENGINE=InnoDB DEFAULT CHARSET=utf8;尋找 USING BTREE mysql,你會看到很多這樣的例子,mysql 5.14
windows 下配置 apache 2.2.4+php 5.2.5+mysql 5.0.41+zend 3.3.0最新配置1,php5.2.5 for windows 2, mysql-5.0.41 for windows 3, apache_2.2.4 For Windows 4, ZendOptimizer-3.0.2-Windows-i3865,phpMyAdmin 2.9.X
Linux mysql教程改變字元集編碼與ubuntu下更改mysql預設編碼找到設定檔 /etc/mysql/my.cnf在[client]下面加上 default-character-set=utf8在[mysqld]下面加上 default-character-set=utf8重啟伺服器service mysql restart在mysql中鍵入命令: show variables like '