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 (96) ORDER BY t.name ASC

Mysql远程连接 – Crazy knowledge base
Crazy knowledge base

Mysql远程连接

mysql默认是没有开启远程控制的,必须添加远程访问的用户。

如果是安装版的话,从mysql提供的控制台进入。
用root用户登陆,然后:
grant all privileges on *.* to 创建的用户名 @”%” identified by “密码”;
flush privileges;   * 刷新刚才的内容*

格式:grant  权限 on 数据库名.表名 to  用户@登录主机 identified by “用户密码”;
            @ 后面是访问mysql的客户端IP地址(或是 主机名) % 代表任意的客户端,如果填写 localhost 为本地访问(那此用户就不能远程访问该mysql数据库了)。

同时也可以为现有的用户设置是否具有远程访问权限。如下:
use mysql;
update db set host = ”%” where user = ”用户名”;  (如果写成 host=localhost 那此用户就不具有远程访问权限)
FLUSH PRIVILEGES;

查看结果,执行:
   use mysql;
   select host,user,password from user;

+————–+——–+—————+
| Host        | User | Password |
+————–+——–+—————–+
| localhost |         |                |
| %            | John | 123456  |
| localhost | root  |                |
+————–+—— –+—————+

总结:
    其实MySQL默认有两个数据库分别为 mysql 和 test 而MySQL用户的信息都放在数据库 mysql 的相关表中
也可以使用 Navicat (推荐)这样的GUI工具来管理用户。

文章出处:http://www.diybl.com/course/7_databases/mysql/Mysqljs/2008324/107030.html

Mysql远程连接

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 (95) 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 (97) ORDER BY t.name ASC

滚动到顶部