WordPress数据库错误: [Got error 28 from storage engine]
SHOW FULL COLUMNS FROM `wp_options`

WordPress数据库错误: [Got error 28 from storage engine]
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (29) ORDER BY t.name ASC

mysql tar包安装 – Crazy knowledge base
Crazy knowledge base

mysql tar包安装

 

step 1)下载源代码包到本地Linux主机,然后解压缩,进入该目录,进行配置,编译和安装

下载mysql5源码mysql-5.0.18.tar.gz到目录/usr/local

cd /usr/local

tar xzvf mysql-5.0.18.tar.gz

cd mysql-5.0.18

./configure –prefix=/usr/local/mysql5   (mysql5必须用这个目录,有相应的config文件默认对应了这个目录)

make && make install

make过程花的时间比较长

step 2)配置

cp support-files/my-medium.cnf /etc/my.cnf

vi /etc/my.cnf 加入以下两行并保存

  log-error=/var/lib/mysql/data/x.err
  datadir= /var/lib/mysql/data

cd /usr/local/mysql5

bin/mysql(可能会抱错Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) )

这个问题主要提示是,不能通过’/tmp/mysql.sock’连到服务器,而php标准配置正是用过’/tmp/mysql.sock’,但是一些mysql安装方法将mysql.sock放在/var/lib/mysql.sock或者其他的什么地方,你可以通过修改/etc/my.cnf文件来修正它,打开文件,可以看到如下的东东:
  [mysqld]
  socket=/var/lib/mysql.sock
  改一下就好了,但也会引起其他的问题,如mysql程序连不上了,再加一点:
  [mysql]
  socket=/tmp/mysql.sock
  或者还可以通过修改php.ini中的配置来使php用其他的mysql.sock来连,这个大家自己去找找
  
  或者用这样的方法:
  ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

http://tech.ccidnet.com/art/1108/20050517/252387_1.html

可能调用mysql库时出现error while loading shared libraries: libmysqlclient.so.12

调用mysql库时出现error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: no such的错误,那么解决方法如下

  vi /etc/ld.so.conf
  #加入一行
  /usr/local/mysql5/lib/mysql
  #然后运行
  ldconfig 

然后

 bin/mysql_install_db –user=mysql

bin/mysqld_safe

 /usr/local/mysql5/bin/mysql就ok了

mysql tar包安装

WordPress数据库错误: [Got error 28 from storage engine]
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (28) ORDER BY t.name ASC

WordPress数据库错误: [Got error 28 from storage engine]
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (30) ORDER BY t.name ASC

mysql tar包安装”上有 1 条回复;

评论已关闭。

滚动到顶部