贴出你的那个网址,我去发个提醒让博主改了 下面摘自mysql 官方文档。 Use an option file. You can set the prompt option in the [mysql] group of any MySQL option file, such as /etc/my.cnf or the .my.cnf file in your home directory. For example: [mysql] prompt=(\\u@\\h) [\\d]>\\_5.1.2. Server Command Options mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. 如果是初学,建议花一到两天把官方文档看完。 MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
8.8. mysqldump:数据库备份程序
mysqldump客户端可用来转储数据库或搜集数据库进行备份或将数据转移到另一个SQL服务器(不一定是一个MySQL服务器)。转储包含创建表和/或装载表的SQL语句。
-E 把 insert 合并一下,减少文件体积
-R 这个是解决你的问题的,把所有存储过程一起备份出来。-p就不用问了,让你输入密码的如下即可
[code=BatchFile]mysqldump -u 用户名 -p -R 数据库 > filename.sql[/code]
没试过,应该差别不大。主要是 Event scheduler, Partitioning 在 5.0中不支持,如果没有这些,则应该不会有影响
我在 [mysql] 下面加了skip-innodb
skip-bdb这两个,为什么加上这两个就不能备份了呢?
skip-bdb
应该加在 [mysqld] 下,而不是[mysql]段中。
skip-innodb
skip-bdb
你能确定吗?我这样做也是在网上看到的,其实自己不知道对不对,就加上了,平常用的时候也没错,就是备份的时候出错,你能确定是加下那个下面吧?
贴出你的那个网址,我去发个提醒让博主改了
下面摘自mysql 官方文档。
Use an option file. You can set the prompt option in the [mysql] group of any MySQL option file, such as /etc/my.cnf or the .my.cnf file in your home directory. For example: [mysql]
prompt=(\\u@\\h) [\\d]>\\_5.1.2. Server Command Options
mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups.
如果是初学,建议花一到两天把官方文档看完。
MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
在
[mysql]
skip-innodb
下
,可以启动