mysql 创建表 1067,Mysql 错误 1067

Mysql 错误 1067

启动Mysql 错误 1067 进程意外终止的一种解决方法

mysqld-nt --defaults-file=my.ini --standalone --console

查看信息内容

发现MYSQL INNODB初始化错误。

错误如下:

InnoDB: The first specified data file .\ibdata1 did not exist:

InnoDB: a new database to be created!

100115 10:14:04  InnoDB: Setting file .\ibdata1 size to 10 MB

InnoDB: Database physically writes the file full: wait...

InnoDB: Error: all log files must be created at the same time.

InnoDB: All log files must be created also in database creation.

InnoDB: If you want bigger or smaller log files, shut down the

InnoDB: database and make sure there were no errors in shutdown.

InnoDB: Then delete the existing log files. Edit the .cnf file

InnoDB: and start the database again.

100115 10:14:04 [ERROR] Default storage engine (InnoDB) is not available

100115 10:14:04 [ERROR] Aborting

删除DATA \ibdata1,即可。

相关文档:

创建数据库:create database 数据库名;

创建表:create table 表名 ( 列名 数据类型 not null... );

查看系统中所有的数据库:show databases;

选择要应用的数据库:use 数据库名;

查看某个数据库下的所有表:show tables;

查看表结构:desc(describe) 表名;

重命名表名:alter table 表名 rename as 新表名

� ......

几个常用用例:

1.导出整个数据库

mysqldump -u 用户名 -p 数据库名 > 导出的文件名

mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql

2.导出一个表

mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名

mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql

3.导出一个数据库结构

mysqldump ......

[root@pku-fan MySQL]# cat limbs.sql

CREATE DATABASE cookbook;

USE cookbook;

DROP TABLE IF EXISTS limbs;

CREATE TABLE limbs

(

thing   VARCHAR(20),    # what the thing is

legs    INT,     ......

这次是Fotolog

的经验,传说中比Flickr更大的网站

,Fotolog在21台服务

器上部署了51个memcached实例,总计有254G缓存空间

可用,缓存了多达175G的内容,这个数量比很多网站的数据库都要大的多,原文是A Bunch of Great Strategies for Using Memcached and MySQL Better Together

,我这里还是选择性的翻译以及按照 ......

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值